MCPcopy Index your code
hub / github.com/dgraph-io/badger / ReadByte

Method ReadByte

value.go:341–345  ·  view source on GitHub ↗

ReadByte reads exactly one byte from the reader. Returns error on failure.

()

Source from the content-addressed store, hash-verified

339
340// ReadByte reads exactly one byte from the reader. Returns error on failure.
341func (t *hashReader) ReadByte() (byte, error) {
342 b := make([]byte, 1)
343 _, err := t.Read(b)
344 return b[0], err
345}
346
347// Sum32 returns the sum32 of the underlying hash.
348func (t *hashReader) Sum32() uint32 {

Callers 1

DecodeFromMethod · 0.45

Calls 1

ReadMethod · 0.95

Tested by

no test coverage detected