MCPcopy
hub / github.com/tinylib/msgp / Append

Method Append

msgp/write.go:210–219  ·  view source on GitHub ↗
(b ...byte)

Source from the content-addressed store, hash-verified

208}
209
210func (mw *Writer) Append(b ...byte) error {
211 if mw.avail() < len(b) {
212 err := mw.flush()
213 if err != nil {
214 return err
215 }
216 }
217 mw.wloc += copy(mw.buf[mw.wloc:], b)
218 return nil
219}
220
221// push one byte onto the buffer
222//

Callers

nothing calls this directly

Calls 2

availMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected