func NewLenWriter(buf *bytes2.ChunkedWriter) LenWriter { off := buf.Len() b := buf.Reserve(_WORD32) return LenWriter{buf, off, b} }
func putUint32(buf *bytes2.ChunkedWriter, val uint32) { Pack.PutUint32(buf.Reserve(_WORD32), val) }
func putUint64(buf *bytes2.ChunkedWriter, val uint64) { Pack.PutUint64(buf.Reserve(_WORD64), val) }
func EncodePrefix(buf *bytes2.ChunkedWriter, etype byte, key string) { b := buf.Reserve(len(key) + 2) b[0] = etype copy(b[1:], key) b[len(b)-1] = 0 }