MCPcopy Create free account
hub / github.com/HDT3213/rdb / writeFloat64

Method writeFloat64

core/string.go:330–334  ·  view source on GitHub ↗
(f float64)

Source from the content-addressed store, hash-verified

328}
329
330func (enc *Encoder) writeFloat64(f float64) error {
331 bin := math.Float64bits(f)
332 binary.LittleEndian.PutUint64(enc.buffer, bin)
333 return enc.write(enc.buffer)
334}
335
336// a string might be encoded as an integer, but only subset (aka uint32) of the number set
337// can be encoded and then decoded back.

Callers 1

writeZSet2EncodingMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected