Versions in this module Expand all Collapse all v25 v25.1.0 Dec 11, 2025 Changes in this version + const SeekCurrent + const SeekStart + func ApproxLen(pack *pb.UidPack) int + func CopyUidPack(pack *pb.UidPack) *pb.UidPack + func Decode(pack *pb.UidPack, seek uint64) []uint64 + func DecodeToBuffer(buf *z.Buffer, pack *pb.UidPack) + func Encode(uids []uint64, blockSize int) *pb.UidPack + func EncodeFromBuffer(buf []byte, blockSize int) *pb.UidPack + func ExactLen(pack *pb.UidPack) int + func FreePack(pack *pb.UidPack) + type Decoder struct + Pack *pb.UidPack + func NewDecoder(pack *pb.UidPack) *Decoder + func (d *Decoder) ApproxLen() int + func (d *Decoder) BlockIdx() int + func (d *Decoder) LinearSeek(seek uint64) []uint64 + func (d *Decoder) Next() []uint64 + func (d *Decoder) PeekNextBase() uint64 + func (d *Decoder) Seek(uid uint64, whence seekPos) []uint64 + func (d *Decoder) SeekToBlock(uid uint64, whence seekPos) []uint64 + func (d *Decoder) Uids() []uint64 + func (d *Decoder) UnpackBlock() []uint64 + func (d *Decoder) Valid() bool + type Encoder struct + Alloc *z.Allocator + BlockSize int + func (e *Encoder) Add(uid uint64) + func (e *Encoder) Done() *pb.UidPack v25.1.0-preview1 Dec 4, 2025 Other modules containing this package github.com/dgraph-io/dgraph github.com/dgraph-io/dgraph/v24