MCPcopy Create free account
hub / github.com/pingcap/tidb / GetString

Method GetString

pkg/types/json_binary.go:215–218  ·  view source on GitHub ↗

GetString gets the string value.

()

Source from the content-addressed store, hash-verified

213
214// GetString gets the string value.
215func (bj BinaryJSON) GetString() []byte {
216 strLen, lenLen := binary.Uvarint(bj.Value)
217 return bj.Value[lenLen : lenLen+int(strLen)]
218}
219
220// Opaque represents a raw binary type
221type Opaque struct {

Callers 4

marshalToMethod · 0.95
GetValueMethod · 0.95
UnquoteMethod · 0.95
SearchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected