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

Method readString

protocol/nbt/qnbt/primitive.go:177–190  ·  view source on GitHub ↗
(dst *string)

Source from the content-addressed store, hash-verified

175}
176
177func (d *Decoder) readString(dst *string) error {
178 l, err := d.readShort()
179 if err != nil {
180 return err
181 }
182
183 if err := d.rd.fill(int(l)); err != nil {
184 return err
185 }
186
187 *dst = string(d.load(int(l)))
188
189 return nil
190}
191
192func (d *Decoder) readStringNonCopy(dst *string) error {
193 l, err := d.readShort()

Callers 3

decodeMapStringMethod · 0.95
readStringPtrMethod · 0.95
DecodeMethod · 0.95

Calls 3

readShortMethod · 0.95
loadMethod · 0.95
fillMethod · 0.80

Tested by

no test coverage detected