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

Method SetBit

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

SetBit sets 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

32 // function returns an error if the position is out
33 // of range. A sparse bit array never returns an error.
34 SetBit(k uint64) error
35 // GetBit gets the bit at the given position. This
36 // function returns an error if the position is out
37 // of range. A sparse bit array never returns an error.

Callers 15

TestGetSetCompressedBitFunction · 0.65
TestGetSetCompressedBitsFunction · 0.65
TestCompressedCountFunction · 0.65
TestClearCompressedBitFunction · 0.65
TestCompressedEqualsFunction · 0.65
TestCompressedIntersectsFunction · 0.65

Implementers 2

sparseBitArraybitarray/sparse_bitarray.go
bitArraybitarray/bitarray.go

Calls

no outgoing calls

Tested by 15

TestGetSetCompressedBitFunction · 0.52
TestGetSetCompressedBitsFunction · 0.52
TestCompressedCountFunction · 0.52
TestClearCompressedBitFunction · 0.52
TestCompressedEqualsFunction · 0.52
TestCompressedIntersectsFunction · 0.52