Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/segmentio/encoding
/ Bytes
Method
Bytes
proto/message.go:104–106 ·
view source on GitHub ↗
(v []byte)
Source
from the content-addressed store, hash-verified
102
}
103
104
func
(f FieldNumber) Bytes(v []byte) RawMessage {
105
return
AppendVarlen(nil, f, v)
106
}
107
108
// Value constructs a RawMessage for field number f from v.
109
func
(f FieldNumber) Value(v any) RawMessage {
Callers
15
String
Method · 0.95
Value
Method · 0.95
parseRewriteTemplateBytes
Function · 0.80
Marshal
Function · 0.80
encodeBytes
Function · 0.80
TestHTMLEscape
Function · 0.80
tenc
Function · 0.80
TestCompactBig
Function · 0.80
TestIndentBig
Function · 0.80
TestCodec
Function · 0.80
TestCodecDuration
Function · 0.80
TestSetTrustRawMessage
Function · 0.80
Calls
1
AppendVarlen
Function · 0.85
Tested by
8
TestHTMLEscape
Function · 0.64
tenc
Function · 0.64
TestCompactBig
Function · 0.64
TestIndentBig
Function · 0.64
TestCodec
Function · 0.64
TestCodecDuration
Function · 0.64
TestSetTrustRawMessage
Function · 0.64
TestSetAppendNewline
Function · 0.64