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

Method EncodeDouble

proto/protowire/encode.go:200–202  ·  view source on GitHub ↗
(b []byte, v float64)

Source from the content-addressed store, hash-verified

198}
199
200func (BinaryEncoder) EncodeDouble(b []byte, v float64) []byte {
201 return AppendFixed64(b, math.Float64bits(v))
202}
203
204func (BinaryEncoder) EncodeString(b []byte, v string) []byte {
205 return append(AppendVarint(b, uint64(len(v))), v...)

Callers 3

NewNodeDoubleFunction · 0.45
runTestsFunction · 0.45
WriteDoubleMethod · 0.45

Calls 1

AppendFixed64Function · 0.85

Tested by 1

runTestsFunction · 0.36