MCPcopy Create free account
hub / github.com/apache/fory / WriteFloat32

Method WriteFloat32

go/fory/buffer.go:272–276  ·  view source on GitHub ↗
(value float32)

Source from the content-addressed store, hash-verified

270}
271
272func (b *ByteBuffer) WriteFloat32(value float32) {
273 b.grow(4)
274 binary.LittleEndian.PutUint32(b.data[b.writerIndex:], Float32bits(value))
275 b.writerIndex += 4
276}
277
278func (b *ByteBuffer) WriteFloat64(value float64) {
279 b.grow(8)

Callers 10

testBufferFunction · 0.95
WriteFloat32SliceFunction · 0.45
WriteDataMethod · 0.45
writeRemainingFieldMethod · 0.45
writeOptionFastFunction · 0.45
SerializeFunction · 0.45
writeFloat32ListValuesFunction · 0.45
WriteDataMethod · 0.45
RawFloat32Method · 0.45
writeFastMethod · 0.45

Calls 2

growMethod · 0.95
Float32bitsFunction · 0.85

Tested by

no test coverage detected