{"modulePath":"github.com/Evolution404/simcore","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bitutil\n\nPackage bitutil implements fast bitwise operations.\n\n## Functions\n\n```go\nfunc ANDBytes(dst, a, b []byte) int\n```\nANDBytes ands the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes and'd.\n\n```go\nfunc CompressBytes(data []byte) []byte\n```\nCompressBytes 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.\n\n```go\nfunc DecompressBytes(data []byte, target int) ([]byte, error)\n```\nDecompressBytes 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.\n\n```go\nfunc ORBytes(dst, a, b []byte) int\n```\nORBytes ors the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes or'd.\n\n```go\nfunc TestBytes(p []byte) bool\n```\nTestBytes tests whether any bit is set in the input byte slice.\n\n```go\nfunc XORBytes(dst, a, b []byte) int\n```\nXORBytes xors the bytes in a and b. The destination is assumed to have enough space. Returns the number of bytes xor'd.\n\n","path":"github.com/Evolution404/simcore/common/bitutil","name":"bitutil","synopsis":"Package bitutil implements fast bitwise operations.","isRedistributable":true}
