table/builder.go
func (h header) Encode(b []byte) {
	binary.BigEndian.PutUint16(b[0:2], h.plen)
	binary.BigEndian.PutUint16(b[2:4], h.klen)
	binary.BigEndian.PutUint16(b[4:6], h.vlen)
	binary.BigEndian.PutUint32(b[6:10], h.prev)
}
func (h header) Encode(b []byte) {
	binary.BigEndian.PutUint16(b[0:2], h.plen)
	binary.BigEndian.PutUint16(b[2:4], h.klen)
	binary.BigEndian.PutUint16(b[4:6], h.vlen)
	binary.BigEndian.PutUint32(b[6:10], h.prev)
}
func ( h header ) Encode ( b [ ] byte ) { binary . BigEndian . PutUint16 ( b [ 0 : 2 ] , h . plen ) binary . BigEndian . PutUint16 ( b [ 2 : 4 ] , h . klen ) binary . BigEndian . PutUint16 ( b [ 4 : 6 ] , h . vlen ) binary . BigEndian . PutUint32 ( b [ 6 : 10 ] , h . prev ) }
// Encode encodes the header.
Encode encodes the header .