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

Method deleteAtIndex

bitarray/sparse_bitarray.go:99–103  ·  view source on GitHub ↗
(i int64)

Source from the content-addressed store, hash-verified

97}
98
99func (b *blocks) deleteAtIndex(i int64) {
100 copy((*b)[i:], (*b)[i+1:])
101 (*b)[len(*b)-1] = block(0)
102 *b = (*b)[:len(*b)-1]
103}
104
105type sparseBitArray struct {
106 blocks blocks

Callers 2

ClearBitMethod · 0.45

Calls 1

blockTypeAlias · 0.85

Tested by

no test coverage detected