Functions§
- decode
- Decodes a single varint from the input slice.
- decode_
eight_ ⚠u8_ unsafe ssse3 - Decodes four adjacent varints into u8’s simultaneously. Requires SSSE3 support. Does not perform overflow checking and may produce incorrect output.
- decode_
four_ ⚠unsafe ssse3 - Decodes four adjacent varints simultaneously. Target types must fit within 16 bytes when varint encoded. Requires SSSE3 support.
- decode_
len - Decodes only the length of a single variant from the input slice.
- decode_
len_ ⚠unsafe - Decodes the length of the next integer
- decode_
two_ ⚠unsafe ssse3 - Decodes two adjacent varints simultaneously. Target types must fit within 16 bytes when varint encoded. Requires SSSE3 support.
- decode_
two_ ⚠wide_ unsafe avx2 - Experimental. May have relatively poor performance. Decode two adjacent varints
simultaneously from the input pointer. Requires AVX2. Allows for decoding a pair of
u64values. For smaller values, the non-wide variation of this function will probably be faster. - decode_
unsafe ⚠ - Decodes a single varint from the input pointer. Returns a tuple containing the decoded number and the number of bytes read.
- decode_
zigzag - Convenience function for decoding a single varint in ZigZag format from the input slice.
See also:
decode