locus_mmdb_data (locus v2.3.15)

Copy Markdown View Source

API for working with MMDB - data representation.

See MaxMind DB File Format Specification.

Summary

Types

array()

-type array() :: [value()].

boolean_()

-type boolean_() :: boolean().

bytes()

-type bytes() :: binary().

double()

-type double() :: float() | '#Inf' | '#-Inf'.

float_()

-type float_() :: double().

int32()

-type int32() :: -(1 bsl 31)..1 bsl 31 - 1.

map_()

-type map_() :: #{unicode:unicode_binary() => value()}.

uint16()

-type uint16() :: 0..1 bsl 16 - 1.

uint32()

-type uint32() :: 0..1 bsl 32 - 1.

uint64()

-type uint64() :: 0..1 bsl 64 - 1.

uint128()

-type uint128() :: 0..1 bsl 128 - 1.

utf8_string()

-type utf8_string() :: unicode:unicode_binary().

value()

-type value() ::
          map_() |
          utf8_string() |
          double() |
          bytes() |
          uint16() |
          uint32() |
          int32() |
          uint64() |
          uint128() |
          array() |
          boolean() |
          float_().