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

Method WriteString

proto/binary/binary.go:306–312  ·  view source on GitHub ↗

WriteString

(value string)

Source from the content-addressed store, hash-verified

304
305// WriteString
306func (p *BinaryProtocol) WriteString(value string) error {
307 if !utf8.ValidString(value) {
308 return meta.NewError(meta.ErrInvalidParam, value, nil)
309 }
310 p.Buf = protowire.BinaryEncoder{}.EncodeString(p.Buf, value)
311 return nil
312}
313
314// WriteBytes
315func (p *BinaryProtocol) WriteBytes(value []byte) error {

Callers 7

WriteMapMethod · 0.95
WriteBaseTypeWithDescMethod · 0.95
marshalMethod · 0.45
ExampleValue_SetByPathFunction · 0.45
TestSetByPathFunction · 0.45
TestUnsetByPathFunction · 0.45
TestSetManyFunction · 0.45

Calls 2

NewErrorFunction · 0.92
EncodeStringMethod · 0.45

Tested by 4

ExampleValue_SetByPathFunction · 0.36
TestSetByPathFunction · 0.36
TestUnsetByPathFunction · 0.36
TestSetManyFunction · 0.36