func (vl FloatValue) reader() io.Reader {
	return bytes.NewReader(Buffer.Float64ToBytes(float64(vl), nil, 0))
}
Exemple #2
0
func (pckr *packer) PackFloat64(val float64) {
	pckr.buffer.WriteByte(0xcb)
	pos := pckr.grow(_b8)
	Buffer.Float64ToBytes(val, pckr.buffer.Bytes(), pos)
}
func (vl FloatValue) write(buffer []byte, offset int) (int, error) {
	Buffer.Float64ToBytes(float64(vl), buffer, offset)
	return 8, nil
}