table/builder.go
func (h *header) Decode(buf []byte) int {
	h.plen = binary.BigEndian.Uint16(buf[0:2])
	h.klen = binary.BigEndian.Uint16(buf[2:4])
	h.vlen = binary.BigEndian.Uint16(buf[4:6])
	h.prev = binary.BigEndian.Uint32(buf[6:10])
	return h.Size()
}
func (h *header) Decode(buf []byte) int {
	h.plen = binary.BigEndian.Uint16(buf[0:2])
	h.klen = binary.BigEndian.Uint16(buf[2:4])
	h.vlen = binary.BigEndian.Uint16(buf[4:6])
	h.prev = binary.BigEndian.Uint32(buf[6:10])
	return h.Size()
}
func ( h * header ) Decode ( buf [ ] byte ) int { h . plen = binary . BigEndian . Uint16 ( buf [ 0 : 2 ] ) h . klen = binary . BigEndian . Uint16 ( buf [ 2 : 4 ] ) h . vlen = binary . BigEndian . Uint16 ( buf [ 4 : 6 ] ) h . prev = binary . BigEndian . Uint32 ( buf [ 6 : 10 ] ) return h . Size ( ) }
// Decode decodes the header.
Decode decodes the header .