MCPcopy
hub / github.com/go-git/go-git / Read

Function Read

utils/binary/read.go:23–31  ·  view source on GitHub ↗

Read reads structured binary data from r into data. Bytes are read and decoded in BigEndian order https://golang.org/pkg/encoding/binary/#Read

(r io.Reader, data ...interface{})

Source from the content-addressed store, hash-verified

21// decoded in BigEndian order
22// https://golang.org/pkg/encoding/binary/#Read
23func Read(r io.Reader, data ...interface{}) error {
24 for _, v := range data {
25 if err := binary.Read(r, binary.BigEndian, v); err != nil {
26 return err
27 }
28 }
29
30 return nil
31}
32
33// ReadUntil reads from r untin delim is found
34func ReadUntil(r io.Reader, delim byte) ([]byte, error) {

Callers 3

readEntryMethod · 0.92
TestReadMethod · 0.85
ReadVariableWidthIntFunction · 0.85

Calls 1

ReadMethod · 0.45

Tested by 1

TestReadMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…