MCPcopy
hub / github.com/tinylib/msgp / WriteFloat32

Method WriteFloat32

msgp/write.go:369–371  ·  view source on GitHub ↗

WriteFloat32 writes a float32 to the writer

(f float32)

Source from the content-addressed store, hash-verified

367
368// WriteFloat32 writes a float32 to the writer
369func (mw *Writer) WriteFloat32(f float32) error {
370 return mw.prefix32(mfloat32, math.Float32bits(f))
371}
372
373// WriteDuration writes a time.Duration to the writer
374func (mw *Writer) WriteDuration(d time.Duration) error {

Callers 14

TestReadFloat32BytesFunction · 0.95
TestReadFloat32Function · 0.95
TestWriteFloat32Function · 0.95
BenchmarkWriteFloat32Function · 0.95
TestCopyJSONFunction · 0.95
BenchmarkCopyToJSONFunction · 0.95
WriteIntfMethod · 0.95
BenchmarkUnmarshalAsJSONFunction · 0.95
TestAppendFloat32Function · 0.95
EncodeMsgMethod · 0.80

Calls 1

prefix32Method · 0.95

Tested by 10

TestReadFloat32BytesFunction · 0.76
TestReadFloat32Function · 0.76
TestWriteFloat32Function · 0.76
BenchmarkWriteFloat32Function · 0.76
TestCopyJSONFunction · 0.76
BenchmarkCopyToJSONFunction · 0.76
BenchmarkUnmarshalAsJSONFunction · 0.76
TestAppendFloat32Function · 0.76