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

Method WriteFloat64

utils.go:198–206  ·  view source on GitHub ↗
(i float64)

Source from the content-addressed store, hash-verified

196}
197
198func (player *Player) WriteFloat64(i float64) (err error) {
199 buff := player.io.buffer[:8]
200 binary.BigEndian.PutUint64(buff, math.Float64bits(i))
201 _, err = player.io.wtr.Write(buff)
202 if err != nil {
203 return err
204 }
205 return
206}
207
208func (player *Player) ReadString() (s string, err error) {
209 length, err := player.ReadVarInt()

Callers 2

writePropertiesMethod · 0.80
WriteMethod · 0.80

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected