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

Method readBytesString

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

Source from the content-addressed store, hash-verified

27}
28
29func (rd *bufferedReader) readBytesString(num int) (string, error) {
30 b, err := rd.readBytes(num)
31 if err != nil {
32 return "", err
33 }
34
35 return unsafe.String(unsafe.SliceData(b), num), nil
36}
37
38func (rd *bufferedReader) fill(min int) error {
39 if rd.available() < min {

Callers 2

decodeMapStringMethod · 0.80
DecodeMethod · 0.80

Calls 2

readBytesMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected