(b byte, u uint64)
| 269 | } |
| 270 | |
| 271 | func (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. |
no test coverage detected