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

Method WriteStringWithDesc

thrift/binary.go:1169–1171  ·  view source on GitHub ↗

WriteStringWithDesc explain simple string val with desc and convert to thrift data

(val string, desc *TypeDescriptor, disallowUnknown bool, base64Binary bool)

Source from the content-addressed store, hash-verified

1167
1168// WriteStringWithDesc explain simple string val with desc and convert to thrift data
1169func (p *BinaryProtocol) WriteStringWithDesc(val string, desc *TypeDescriptor, disallowUnknown bool, base64Binary bool) error {
1170 return p.DecodeText(val, desc, disallowUnknown, base64Binary, true, false)
1171}
1172
1173// DecodeText decode special text-encoded val with desc and write it into buffer
1174// The encoding of val should be compatible with `EncodeText()`

Callers 2

writeStringValueMethod · 0.95
RequestMethod · 0.80

Calls 1

DecodeTextMethod · 0.95

Tested by

no test coverage detected