MCPcopy
hub / github.com/Workiva/go-datastructures / ClearBit

Method ClearBit

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

ClearBit clears 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

44 // function returns an error if the position is out
45 // of range. A sparse bit array never returns an error.
46 ClearBit(k uint64) error
47 // Reset sets all values to zero.
48 Reset()
49 // Blocks returns an iterator to be used to iterate

Callers 15

TestGetSetCompressedBitsFunction · 0.65
TestCompressedCountFunction · 0.65
TestClearCompressedBitFunction · 0.65
TestCompressedEqualsFunction · 0.65
TestBitmap32_ClearBitFunction · 0.65
TestBitmap64_ClearBitFunction · 0.65
TestBitOperationsFunction · 0.65
TestDuplicateOperationFunction · 0.65
TestCountFunction · 0.65
TestGetSetBitsFunction · 0.65
TestClearBitAtCapacityFunction · 0.65

Implementers 2

sparseBitArraybitarray/sparse_bitarray.go
bitArraybitarray/bitarray.go

Calls

no outgoing calls

Tested by 13

TestGetSetCompressedBitsFunction · 0.52
TestCompressedCountFunction · 0.52
TestClearCompressedBitFunction · 0.52
TestCompressedEqualsFunction · 0.52
TestBitmap32_ClearBitFunction · 0.52
TestBitmap64_ClearBitFunction · 0.52
TestBitOperationsFunction · 0.52
TestDuplicateOperationFunction · 0.52
TestCountFunction · 0.52
TestGetSetBitsFunction · 0.52
TestClearBitAtCapacityFunction · 0.52