MCPcopy Index your code
hub / github.com/pingcap/tidb / appendBinaryString

Function appendBinaryString

pkg/types/json_binary.go:774–781  ·  view source on GitHub ↗
(buf []byte, v string)

Source from the content-addressed store, hash-verified

772}
773
774func appendBinaryString(buf []byte, v string) []byte {
775 begin := len(buf)
776 buf = appendZero(buf, binary.MaxVarintLen64)
777 lenLen := binary.PutUvarint(buf[begin:], uint64(len(v)))
778 buf = buf[:len(buf)-binary.MaxVarintLen64+lenLen]
779 buf = append(buf, v...)
780 return buf
781}
782
783func appendBinaryOpaque(buf []byte, v Opaque) []byte {
784 buf = append(buf, v.TypeCode)

Callers 1

appendBinaryJSONFunction · 0.85

Calls 1

appendZeroFunction · 0.85

Tested by

no test coverage detected