func NewTimeEncoder(sz int) TimeEncoder {
	return &encoder{
		ts:  make([]uint64, 0, sz),
		enc: simple8b.NewEncoder(),
	}
}
NewTimeEncoder returns a TimeEncoder with an initial buffer ready to hold sz bytes.
package tsm1
import (
	"encoding/binary"
	"fmt"
	"math"
	"github.com/jwilder/encoding/simple8b"
)
const (
	timeUncompressed = 0
	timeCompressedPackedSimple = 1
	timeCompressedRLE = 2
)
type TimeEncoder interface {
	Write(t int64)
	Bytes() ([]byte, error)
	Reset()
}
type encoder struct {
	ts    []uint64
	bytes []byte
	enc   *simple8b.Encoder
}