Geolix v0.10.1 Geolix.Decoder

Module for decoding the mmdb2 format byte streams.

Summary

Functions

Decodes the datatype found at the given offset of the data

Decodes the node at the given offset

Types

decoded :: atom | binary | boolean | list | map

Functions

decode(data, arg)

Specs

decode(data :: binary, data_part :: binary) :: {value :: decoded, rest :: binary}

Decodes the datatype found at the given offset of the data.

value(data, offset)

Specs

value(data :: binary, offset :: non_neg_integer) :: decoded

Decodes the node at the given offset.