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

Method String

protocol/net/io/encoding/reader.go:95–104  ·  view source on GitHub ↗
(s *string)

Source from the content-addressed store, hash-verified

93}
94
95func (r Reader) String(s *string) error {
96 var l int32
97 if _, err := r.VarInt(&l); err != nil {
98 return err
99 }
100 d, err := r.readBytes(int(l))
101 *s = unsafe.String(unsafe.SliceData(d), len(d))
102
103 return err
104}
105
106func (r Reader) Identifier(s *string) error {
107 return r.String(s)

Callers 15

IdentifierMethod · 0.95
StringFunction · 0.45
nbtStringMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45

Calls 2

VarIntMethod · 0.95
readBytesMethod · 0.95

Tested by

no test coverage detected