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

Method nbtString

protocol/net/io/encoding/reader.go:265–274  ·  view source on GitHub ↗
(v *string)

Source from the content-addressed store, hash-verified

263}
264
265func (r Reader) nbtString(v *string) error {
266 var stringlen int16
267 if err := r.Short(&stringlen); err != nil {
268 return err
269 }
270 d, err := r.readBytes(int(stringlen))
271 *v = unsafe.String(unsafe.SliceData(d), len(d))
272
273 return err
274}

Callers 1

TextComponentMethod · 0.95

Calls 3

ShortMethod · 0.95
readBytesMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected