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

Method prefix64

msgp/write.go:271–281  ·  view source on GitHub ↗
(b byte, u uint64)

Source from the content-addressed store, hash-verified

269}
270
271func (mw *Writer) prefix64(b byte, u uint64) error {
272 const need = 9
273 if len(mw.buf)-mw.wloc < need {
274 if err := mw.flush(); err != nil {
275 return err
276 }
277 }
278 prefixu64(mw.buf[mw.wloc:], b, u)
279 mw.wloc += need
280 return nil
281}
282
283// Write implements io.Writer, and writes
284// data directly to the buffer.

Callers 4

WriteFloatMethod · 0.95
WriteFloat64Method · 0.95
WriteInt64Method · 0.95
WriteUint64Method · 0.95

Calls 2

flushMethod · 0.95
prefixu64Function · 0.85

Tested by

no test coverage detected