func (e *BooleanEncoder) Reset() {
	e.bytes = e.bytes[:0]
	e.b = 0
	e.i = 0
	e.n = 0
}
Reset sets the encoder to its initial state.
package tsm1
import (
	"encoding/binary"
	"fmt"
)
const booleanCompressedBitPacked = 1
type BooleanEncoder struct {
	bytes []byte
	b byte
	i int
	n int
}
func NewBooleanEncoder(sz int) BooleanEncoder {
	return BooleanEncoder{
		bytes: make([]byte, 0, (sz+7)/8),
	}
}