Documentation ¶
Index ¶
- func DecodingSize(n int) int
- func EncodingSize(n int) int
- func P4dec256v32(input []byte, output []uint32) (read int)
- func P4dec32(input []byte, output []uint32) (read int)
- func P4enc256v32(input []uint32, output []byte) int
- func P4enc32(input []uint32) []byte
- func P4nd1dec32(input []byte, output []uint32) (read int)
- func P4nd1enc32(input []uint32) []byte
- func P4ndec256v32(input []byte, output []uint32) (read int)
- func P4ndec32(input []byte, output []uint32) (read int)
- func P4nenc256v32(input []uint32) []byte
- func P4nenc32(input []uint32) []byte
- func P4nzenc32(input []uint32) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodingSize ¶
Corresponding to p4nbound32:
#define VP4BOUND(_n_, _esize_, _csize_) ((_esize_*_n_) + ((_n_+_csize_-1)/_csize_)) size_t p4nbound32( size_t n) { return VP4BOUND(n, 4, 128); }
see also https://github.com/powturbo/TurboPFor-Integer-Compression/issues/59
see also https://github.com/powturbo/TurboPFor-Integer-Compression/issues/84
func EncodingSize ¶
Corresponding to p4nbound256v32:
#define VP4BOUND(_n_, _esize_, _csize_) ((_esize_*_n_) + ((_n_+_csize_-1)/_csize_)) size_t p4nbound256v32(size_t n) { return VP4BOUND(n, 4, 256); }
see also https://github.com/powturbo/TurboPFor-Integer-Compression/issues/59
func P4dec256v32 ¶
func P4enc256v32 ¶
len(input) % 32 must be 0 (pad with 0x00 if necessary).
func P4nd1dec32 ¶
func P4nd1enc32 ¶
len(input) % 32 must be 0 (pad with 0x00 if necessary).
func P4ndec256v32 ¶
func P4nenc256v32 ¶
len(input) % 32 must be 0 (pad with 0x00 if necessary).
Types ¶
This section is empty.