MCPcopy
hub / github.com/go-sql-driver/mysql / appendLengthEncodedString

Function appendLengthEncodedString

utils.go:610–613  ·  view source on GitHub ↗
(b []byte, s string)

Source from the content-addressed store, hash-verified

608}
609
610func appendLengthEncodedString(b []byte, s string) []byte {
611 b = appendLengthEncodedInteger(b, uint64(len(s)))
612 return append(b, s...)
613}
614
615// reserveBuffer checks cap(buf) and expand buffer to len(buf) + appendSize.
616// If cap(buf) is not enough, reallocate new buffer.

Callers 1

Calls 1

Tested by

no test coverage detected