MCPcopy Create free account
hub / github.com/blobcache/blobcache / OR

Method OR

src/blobcache/bitmap.go:66–72  ·  view source on GitHub ↗

OR sets the bit map to be equal to itself bitwised OR'd with o

(o BitMap)

Source from the content-addressed store, hash-verified

64
65// OR sets the bit map to be equal to itself bitwised OR'd with o
66func (bm *BitMap) OR(o BitMap) {
67 for i := 0; i < o.Len(); i++ {
68 if o.IsSet(i) {
69 bm.Set(i)
70 }
71 }
72}
73
74func (bm *BitMap) Marshal(out []byte) []byte {
75 switch bits.UintSize {

Callers 3

ExistsFunction · 0.80
CopyFunction · 0.80
IsVisitedFunction · 0.80

Calls 3

SetMethod · 0.95
IsSetMethod · 0.80
LenMethod · 0.45

Tested by

no test coverage detected