Expand description
Utilities/functions that are useful across all specifications
Structs§
- Command
- A command container. Decoding of a comand and length
- Custom
OrdWrapper - Wrapper struct for custom ordering
Traits§
- BBox
Quantization - Custom
Ord - Manager for float based comparisons
Functions§
- command_
decode - Decode a command with the given length of the data that follows.
- command_
encode - Encode a command with the given length of the data that follows.
- delta_
decode_ array - Decode an array that was encoded using delta encoding.
- delta_
decode_ sorted_ array - Decode a sorted array that was encoded using delta encoding.
- delta_
encode_ array - Encode an array using delta encoding.
- delta_
encode_ sorted_ array - Encode a sorted array using delta encoding.
- dequantize_
lat - Converts quantized latitude back to geographical latitude
- dequantize_
lon - Converts quantized longitude back to geographical longitude
- pack24_
bit_ uint - Packs a 24-bit integer into a buffer at the specified offset.
- pack_
float - Packs a float into a buffer at the specified offset using little-endian format.
- quantize_
lat - 24-bit quantization ~0.000010728836059570312 degrees precision ~1.194 meters precision
- quantize_
lon - 24-bit quantization ~0.000021457672119140625 degrees precision ~2.388 meters precision
- unpack24_
bit_ uint - Unpacks a 24-bit integer from a buffer at the specified offset.
- unpack_
float - Unpacks a float from a buffer at the specified offset using little-endian format.
- unweave_
2d - Deweave a 32-bit number into two 16-bit numbers.
- unweave_
3d - Deweave a 48-bit number into three 16-bit numbers. Returns the three 16-bit numbers in a tuple.
- unweave_
and_ delta_ decode_ 3d_ array - Decode an array of 3D points that were encoded using interweaving and delta encoding.
- unweave_
and_ delta_ decode_ array - Decode an array of points that were encoded using interweaving and delta encoding.
- weave_
2d - Interweave two 16-bit numbers into a 32-bit number. In theory two small numbers can end up varint encoded to use less space.
- weave_
3d - Interweave three 16-bit numbers into a 48-bit number. In theory three small numbers can end up varint encoded to use less space.
- weave_
and_ delta_ encode_ 3d_ array - Encode an array of 3D points using interweaving and delta encoding.
- weave_
and_ delta_ encode_ array - Encode an array of points using interweaving and delta encoding.
- zagzig
- Applies zigzag decoding to transform an unsigned integer into a signed integer.
- zigzag
- Applies zigzag encoding to transform a signed integer into an unsigned integer.