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

Struct Encoder

bitmap/codec.go:58–64  ·  view source on GitHub ↗

Encoder is used to convert a list of UIDs into a UidPack object.

Source from the content-addressed store, hash-verified

56
57// Encoder is used to convert a list of UIDs into a UidPack object.
58type Encoder struct {
59 BlockSize int
60 pack *UidPack
61 uids []uint64
62 Alloc *z.Allocator
63 buf *bytes.Buffer
64}
65
66var blockSize = int(unsafe.Sizeof(UidBlock{}))
67

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected