MCPcopy Index your code
hub / github.com/ZeppelinMC/Zeppelin / writeFloat

Method writeFloat

protocol/nbt/encoder.go:84–86  ·  view source on GitHub ↗
(f float32)

Source from the content-addressed store, hash-verified

82}
83
84func (e *Encoder) writeFloat(f float32) error {
85 return e.writeInt(int32(math.Float32bits(f)))
86}
87
88func (e *Encoder) writeDouble(d float64) error {
89 return e.writeLong(int64(math.Float64bits(d)))

Callers 3

encodeCompoundStructMethod · 0.95
encodeCompoundMapMethod · 0.95
encodeListMethod · 0.95

Calls 1

writeIntMethod · 0.95

Tested by

no test coverage detected