MCPcopy
hub / github.com/dgraph-io/dgraph / DataOffset

Method DataOffset

raftwal/log.go:62–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60func (e entry) Term() uint64 { return binary.BigEndian.Uint64(e) }
61func (e entry) Index() uint64 { return binary.BigEndian.Uint64(e[8:]) }
62func (e entry) DataOffset() uint64 { return binary.BigEndian.Uint64(e[16:]) }
63func (e entry) Type() uint64 { return binary.BigEndian.Uint64(e[24:]) }
64
65func marshalEntry(b []byte, term, index, do, typ uint64) {

Callers 3

GetRaftEntryMethod · 0.80
truncateEntriesUntilMethod · 0.80
AddEntriesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected