Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/segmentio/encoding
/ Float32
Method
Float32
proto/message.go:92–94 ·
view source on GitHub ↗
(v float32)
Source
from the content-addressed store, hash-verified
90
}
91
92
func
(f FieldNumber) Float32(v float32) RawMessage {
93
return
f.Fixed32(math.Float32bits(v))
94
}
95
96
func
(f FieldNumber) Float64(v float64) RawMessage {
97
return
f.Fixed64(math.Float64bits(v))
Callers
4
Value
Method · 0.95
TestRewrite
Function · 0.80
BenchmarkRewrite
Function · 0.80
parseRewriteTemplateFloat
Function · 0.80
Calls
1
Fixed32
Method · 0.95
Tested by
2
TestRewrite
Function · 0.64
BenchmarkRewrite
Function · 0.64