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

Method ReadStringWithDesc

thrift/binary.go:821–823  ·  view source on GitHub ↗

ReadStringWithDesc explains thrift data with desc and converts to simple string

(desc *TypeDescriptor, buf *[]byte, byteAsUint8 bool, disallowUnknown bool, base64Binary bool)

Source from the content-addressed store, hash-verified

819
820// ReadStringWithDesc explains thrift data with desc and converts to simple string
821func (p *BinaryProtocol) ReadStringWithDesc(desc *TypeDescriptor, buf *[]byte, byteAsUint8 bool, disallowUnknown bool, base64Binary bool) error {
822 return p.EncodeText(desc, buf, byteAsUint8, disallowUnknown, base64Binary, true, false)
823}
824
825// EncodeText reads thrift data with descriptor, and converts it to a specail text-protocol string:
826// This protocol is similar to JSON, excepts its key (or field id) IS NOT QUOTED unless it is a string type:

Callers 1

writeHttpValueMethod · 0.80

Calls 1

EncodeTextMethod · 0.95

Tested by

no test coverage detected