MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / readBytes

Method readBytes

protocol/nbt/qnbt/buffer.go:19–27  ·  view source on GitHub ↗
(num int)

Source from the content-addressed store, hash-verified

17}
18
19func (rd *bufferedReader) readBytes(num int) ([]byte, error) {
20 if err := rd.fill(num); err != nil {
21 return nil, err
22 }
23 b := rd.buf[rd.r : rd.r+num]
24 rd.r += num
25
26 return b, nil
27}
28
29func (rd *bufferedReader) readBytesString(num int) (string, error) {
30 b, err := rd.readBytes(num)

Callers 2

readBytesStringMethod · 0.95
decodeByteArrayMethod · 0.45

Calls 1

fillMethod · 0.95

Tested by

no test coverage detected