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

Method EncodeString

proto/protowire/encode.go:204–206  ·  view source on GitHub ↗
(b []byte, v string)

Source from the content-addressed store, hash-verified

202}
203
204func (BinaryEncoder) EncodeString(b []byte, v string) []byte {
205 return append(AppendVarint(b, uint64(len(v))), v...)
206}
207
208func (BinaryEncoder) EncodeBytes(b []byte, v []byte) []byte {
209 return append(AppendVarint(b, uint64(len(v))), v...)

Callers 4

NewNodeStringFunction · 0.45
ToRawMethod · 0.45
runTestsFunction · 0.45
WriteStringMethod · 0.45

Calls 1

AppendVarintFunction · 0.85

Tested by 1

runTestsFunction · 0.36