MCPcopy Create free account
hub / github.com/AdRoll/baker / bit

Method bit

pkg/buffercache/bitmap_test.go:368–373  ·  view source on GitHub ↗

getBit is mainly used for testing purposes

(i int)

Source from the content-addressed store, hash-verified

366
367// getBit is mainly used for testing purposes
368func (bm *bitmap) bit(i int) uint64 {
369 index := i / 64
370 bit := i % 64
371
372 return ((*bm)[index] & (1 << bit)) >> bit
373}

Callers 3

Test_bitmap_getBitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected