Module locus_mmdb_tree

References

Data Types

bad_tree_error()

bad_tree_error() = {invalid_node_index_for_ipv4_root, map()} | {ipv4_root_data_index_out_of_range, map()}

index()

index() = non_neg_integer()

ip4_address_prefix()

ip4_address_prefix() = {inet:ip4_address(), 0..32}

ip6_address_prefix()

ip6_address_prefix() = {inet:ip6_address(), 0..128}

ip_address_prefix()

ip_address_prefix() = ip4_address_prefix() | ip6_address_prefix()

t()

abstract datatype: t()

Function Index

lookup/2Looks up for a DataIndex for Address within Tree
new/5Instantiates a new Tree out of TreeData, a few metadata properties and DataSectionSize

Function Details

lookup/2

lookup(Address, Tree) -> {ok, DataIndex} | not_found | {error, Reason}

Looks up for a DataIndex for Address within Tree

new/5

new(TreeData, NodeCount, RecordSize, IpVersion, DataSectionSize) -> {ok, Tree} | {error, Reason}

Instantiates a new Tree out of TreeData, a few metadata properties and DataSectionSize


Generated by EDoc