MCPcopy Create free account
hub / github.com/TyphoonMC/TyphoonCore / ReadByteArray

Method ReadByteArray

utils.go:266–270  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

264}
265
266func (player *Player) ReadByteArray(length int) (data []byte, err error) {
267 data = make([]byte, length)
268 _, err = player.io.rdr.Read(data)
269 return data, err
270}
271
272func (player *Player) WriteString(s string) (err error) {
273 buff := []byte(s)

Callers 1

ReadMethod · 0.80

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected