Current section
Files
Jump to
Current section
Files
src/gbor.erl
-module(gbor).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-define(FILEPATH, "src/gbor.gleam").
-export_type([c_b_o_r/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(" Module where we can find the base types used for the CBOR values\n").
-type c_b_o_r() :: {c_b_int, integer()} |
{c_b_string, binary()} |
{c_b_float, float()} |
{c_b_map, list({c_b_o_r(), c_b_o_r()})} |
{c_b_array, list(c_b_o_r())} |
{c_b_bool, boolean()} |
c_b_null |
c_b_undefined |
{c_b_binary, bitstring()} |
{c_b_tagged, integer(), c_b_o_r()}.