MCPcopy 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
104func (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.
109func (f FieldNumber) Value(v any) RawMessage {

Callers 15

StringMethod · 0.95
ValueMethod · 0.95
MarshalFunction · 0.80
encodeBytesFunction · 0.80
TestHTMLEscapeFunction · 0.80
tencFunction · 0.80
TestCompactBigFunction · 0.80
TestIndentBigFunction · 0.80
TestCodecFunction · 0.80
TestCodecDurationFunction · 0.80
TestSetTrustRawMessageFunction · 0.80

Calls 1

AppendVarlenFunction · 0.85

Tested by 8

TestHTMLEscapeFunction · 0.64
tencFunction · 0.64
TestCompactBigFunction · 0.64
TestIndentBigFunction · 0.64
TestCodecFunction · 0.64
TestCodecDurationFunction · 0.64
TestSetTrustRawMessageFunction · 0.64
TestSetAppendNewlineFunction · 0.64