code: func (head *listhead) encode(buf []byte) []byte {
  	return buf[:puthead(buf, 0xC0, 0xF7, uint64(head.size))]
  }
docs: // encode writes head to the given buffer, which must be at least
  // 9 bytes long. It returns the encoded bytes.