MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / readFloat

Method readFloat

protocol/nbt/decoder.go:1067–1070  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1065}
1066
1067func (d *Decoder) readFloat() (float32, error) {
1068 i, err := d.readInt()
1069 return math.Float32frombits(uint32(i)), err
1070}
1071
1072func (d *Decoder) readDouble() (float64, error) {
1073 i, err := d.readLong()

Callers 5

decodeCompoundMapMethod · 0.95
decodeCompoundStructMethod · 0.95
decodeListMethod · 0.95
decodeCompoundMethod · 0.95
_decodeListMethod · 0.95

Calls 1

readIntMethod · 0.95

Tested by

no test coverage detected