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

Method WriteVarInt

utils.go:43–48  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

41}
42
43func (player *Player) WriteVarInt(i int) (err error) {
44 buff := player.io.buffer[:]
45 length := binary.PutUvarint(buff, uint64(i))
46 _, err = player.io.wtr.Write(buff[:length])
47 return err
48}
49
50func (player *Player) ReadBool() (b bool, err error) {
51 buff := player.io.buffer[:1]

Callers 14

WriteStringMethod · 0.95
WriteStringRestrictedMethod · 0.95
writePropertiesMethod · 0.80
WriteMethod · 0.80
WriteMethod · 0.80
WriteMethod · 0.80
WriteMethod · 0.80
WriteMethod · 0.80
WriteMethod · 0.80
WriteMethod · 0.80

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected