# Functions
No description provided by the author
IPToRadixkey creates a binary string representation of an IP address.
MarshalBytes returns the bytes of[bytes of footer string][len of footer string][magic num]when this is writen to our underlying record file it is prepenededby the length of the bytes mentioned above so this will appear as anormal record (but it won't parse normally).
MaskStrToUint8 is a helper that just converts a possible mask string to a 10 based uint8.
No description provided by the author
No description provided by the author
NewPrefixTree creates a new PrefixTree with an empty radix tree.
No description provided by the author
Opens the underlying reader with buffer sizes specified in the arguments.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
A Footer is appended at the very end of a RecordFile(all types except the FlatRecordFile type )The end of a footer should always be the magicbytes uint32using that an application can easily see if a file is of our typeRight before that the previous uint32 is the length of the footerbytes.
No description provided by the author
PrefixTree holds a radix tree which clients can insert IPs and masks in , and also lookup for their existence.
A record file knows the number of records it has stored,every record is preceded by a 32bit unsigned value that isthe length of that record in Big Endian and after that thebytes of the record.
No description provided by the author
# Interfaces
No description provided by the author