References
database() = #{metadata := locus_mmdb_metadata:t(), tree := locus_mmdb_tree:t(), data_section := binary()}
unpack_error() = {bad_metadata, locus_mmdb_metadata:parse_or_validation_error()} | {intermediate_128bits_of_zero_not_found_after_tree, {{not_zeroes, binary()}, {at_offset, non_neg_integer()}, {with_metadata, locus_mmdb_metadata:t()}}} | {missing_data_after_tree, {{required, {128, bits}}, {but_got, {0..127, bits}}, {at_offset, non_neg_integer()}, {with_metadata, locus_mmdb_metadata:t()}}} | {not_enough_data_for_tree, {{required, {pos_integer(), bytes}}, {but_got, {non_neg_integer(), bytes}}, {with_metadata, locus_mmdb_metadata:t()}}} | {bad_tree, {{because, locus_mmdb_tree:bad_tree_error()}, {with_metadata, locus_mmdb_metadata:t()}}}
lookup_address/2 | Looks up for an entry matching Address within Database |
unpack_database/1 | Unpacks an EncodedDatabase binary. |
lookup_address(Address, Database) -> {ok, Entry} | not_found | {error, ErrorReason}
Looks up for an entry matching Address
within Database
unpack_database(EncodedDatabase) -> {ok, Database} | {error, ErrorReason}
Unpacks an EncodedDatabase
binary
Generated by EDoc