MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / FreePack

Function FreePack

bitmap/codec.go:68–77  ·  view source on GitHub ↗
(pack *UidPack)

Source from the content-addressed store, hash-verified

66var blockSize = int(unsafe.Sizeof(UidBlock{}))
67
68func FreePack(pack *UidPack) {
69 if pack == nil {
70 return
71 }
72 if pack.AllocRef == 0 {
73 return
74 }
75 alloc := z.AllocatorFrom(pack.AllocRef)
76 alloc.Release()
77}
78
79func (e *Encoder) packBlock() {
80 if len(e.uids) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected