(value float32)
| 270 | } |
| 271 | |
| 272 | func (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 | |
| 278 | func (b *ByteBuffer) WriteFloat64(value float64) { |
| 279 | b.grow(8) |
no test coverage detected