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

Method ReadVarInt

utils.go:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (player *Player) ReadVarInt() (i int, err error) {
36 v, err := binary.ReadUvarint(player.io)
37 if err != nil {
38 return 0, err
39 }
40 return int(v), nil
41}
42
43func (player *Player) WriteVarInt(i int) (err error) {
44 buff := player.io.buffer[:]

Callers 8

ReadStringMethod · 0.95
ReadStringLimitedMethod · 0.95
ReadNStringLimitedMethod · 0.95
ReadMethod · 0.80
ReadMethod · 0.80
ReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected