MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / WriteFloat

Method WriteFloat

proto/binary/binary.go:294–297  ·  view source on GitHub ↗

WriteFloat

(value float32)

Source from the content-addressed store, hash-verified

292
293// WriteFloat
294func (p *BinaryProtocol) WriteFloat(value float32) error {
295 p.Buf = protowire.BinaryEncoder{}.EncodeFloat32(p.Buf, value)
296 return nil
297}
298
299// WriteDouble
300func (p *BinaryProtocol) WriteDouble(value float64) error {

Callers 5

WriteBaseTypeWithDescMethod · 0.95
OnInt64Method · 0.80
OnFloat64Method · 0.80
encodeUnknownFieldFunction · 0.80
encodePackedElementFunction · 0.80

Calls 1

EncodeFloat32Method · 0.80

Tested by

no test coverage detected