MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / GetBit

Method GetBit

bitarray/interface.go:38–38  ·  view source on GitHub ↗

GetBit gets the bit at the given position. This function returns an error if the position is out of range. A sparse bit array never returns an error.

(k uint64)

Source from the content-addressed store, hash-verified

36 // function returns an error if the position is out
37 // of range. A sparse bit array never returns an error.
38 GetBit(k uint64) (bool, error)
39 // GetSetBits gets the position of bits set in the array. Will
40 // return as many set bits as can fit in the provided buffer
41 // starting from the specified position in the array.

Callers 15

TestGetCompressedBitFunction · 0.65
TestGetSetCompressedBitFunction · 0.65
TestClearCompressedBitFunction · 0.65
checkBitFunction · 0.65
TestBitmap32_zGetBitFunction · 0.65
TestBitmap64_GetBitFunction · 0.65
TestBitOperationsFunction · 0.65

Implementers 2

sparseBitArraybitarray/sparse_bitarray.go
bitArraybitarray/bitarray.go

Calls

no outgoing calls

Tested by 15

TestGetCompressedBitFunction · 0.52
TestGetSetCompressedBitFunction · 0.52
TestClearCompressedBitFunction · 0.52
checkBitFunction · 0.52
TestBitmap32_zGetBitFunction · 0.52
TestBitmap64_GetBitFunction · 0.52
TestBitOperationsFunction · 0.52