func (p Prependable) AvailableLength() int {
	return p.usedIdx
}
AvailableLength returns the number of bytes used so far.
package buffer
type Prependable struct {
	buf View
	usedIdx int
}
func NewPrependable(size int) Prependable {
	return Prependable{buf: NewView(size), usedIdx: size}
}
func NewPrependableFromView(v View) Prependable {
	return Prependable{buf: v, usedIdx: 0}
}
func NewEmptyPrependableFromView(v View) Prependable {
	return Prependable{buf: v, usedIdx: len(v)}
}
func (p Prependable) View() View {
	return p.buf[p.usedIdx:]
}
func (p Prependable) UsedLength() int {
	return len(p.buf) - p.usedIdx
}