MMDB2 Decoder v0.1.0 MMDB2Decoder.Database View Source

Main level database logic.

Link to this section Summary

Functions

Looks up a pointer in a database

Splits the data part according to a metadata definition

Link to this section Functions

Link to this function lookup_pointer(ptr, data, meta) View Source
lookup_pointer(non_neg_integer(), binary(), MMDB2Decoder.Metadata.t()) ::
  map() |
  nil

Looks up a pointer in a database.

Link to this function split_data(meta, data) View Source
split_data(binary(), binary()) :: {MMDB2Decoder.Metadata.t(), binary(), binary()}

Splits the data part according to a metadata definition.