import "github.com/ethereum/go-ethereum/common/bitutil"
Package bitutil implements fast bitwise operations.
ANDBytes ands the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes and'd.
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.
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.
ORBytes ors the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes or'd.
TestBytes tests whether any bit is set in the input byte slice.
XORBytes xors the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes xor'd.
Package bitutil imports 3 packages (graph) and is imported by 803 packages. Updated 2021-01-11. Refresh now. Tools for package owners.