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

Method prefix32

msgp/write.go:259–269  ·  view source on GitHub ↗
(b byte, u uint32)

Source from the content-addressed store, hash-verified

257}
258
259func (mw *Writer) prefix32(b byte, u uint32) error {
260 const need = 5
261 if len(mw.buf)-mw.wloc < need {
262 if err := mw.flush(); err != nil {
263 return err
264 }
265 }
266 prefixu32(mw.buf[mw.wloc:], b, u)
267 mw.wloc += need
268 return nil
269}
270
271func (mw *Writer) prefix64(b byte, u uint64) error {
272 const need = 9

Callers 11

WriteMapHeaderMethod · 0.95
WriteArrayHeaderMethod · 0.95
WriteFloatMethod · 0.95
WriteFloat32Method · 0.95
WriteInt64Method · 0.95
WriteUint64Method · 0.95
WriteBytesMethod · 0.95
WriteBytesHeaderMethod · 0.95
WriteStringMethod · 0.95
WriteStringHeaderMethod · 0.95
WriteStringFromBytesMethod · 0.95

Calls 2

flushMethod · 0.95
prefixu32Function · 0.85

Tested by

no test coverage detected