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

Method ByteArray

protocol/net/io/encoding/reader.go:217–226  ·  view source on GitHub ↗

Length prefixed byte array

(s *[]byte)

Source from the content-addressed store, hash-verified

215
216// Length prefixed byte array
217func (r Reader) ByteArray(s *[]byte) error {
218 var l int32
219 if _, err := r.VarInt(&l); err != nil {
220 return err
221 }
222 d, err := r.readBytes(int(l))
223 *s = d
224
225 return err
226}
227
228func (r Reader) FixedByteArray(s []byte) error {
229 _, err := r.r.Read(s)

Callers 15

JSONTextComponentMethod · 0.95
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45

Calls 2

VarIntMethod · 0.95
readBytesMethod · 0.95

Tested by

no test coverage detected