Documentation ¶
Overview ¶
Package bitutil implements fast bitwise operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ANDBytes ¶
ANDBytes ands the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes and'd.
func CompressBytes ¶
CompressBytes compresses the input byte slice according to the sparse bitset representation algorithm. If the result is bigger than the original input, no compression is done.
func DecompressBytes ¶
DecompressBytes decompresses data with a known target size. If the input data matches the size of the target, it means no compression was done in the first place.
func ORBytes ¶
ORBytes ors the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes or'd.
Types ¶
This section is empty.