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

Method ReadBool

utils.go:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (player *Player) ReadBool() (b bool, err error) {
51 buff := player.io.buffer[:1]
52 _, err = io.ReadFull(player.io.rdr, buff)
53 if err != nil {
54 return false, err
55 }
56 return buff[0] == 0x01, nil
57}
58
59func (player *Player) WriteBool(b bool) (err error) {
60 buff := player.io.buffer[:1]

Callers 1

ReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected