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

Method store

buffer.go:145–149  ·  view source on GitHub ↗

store stores buf, an updated buffer, if its suitable to do so.

(buf []byte)

Source from the content-addressed store, hash-verified

143
144// store stores buf, an updated buffer, if its suitable to do so.
145func (b *buffer) store(buf []byte) {
146 if cap(buf) <= maxCachedBufSize && cap(buf) > cap(b.cachedBuf) {
147 b.cachedBuf = buf[:cap(buf)]
148 }
149}

Callers 1

writeExecutePacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected