void HeaderTable::init(uint32_t capacityVal) {
  bytes_ = 0;
  size_ = 0;
  head_ = 0;
  capacity_ = capacityVal;
  // at a minimum an entry will take 32 bytes
  uint32_t length = (capacityVal >> 5) + 1;
  table_.assign(length, HPACKHeader());
  names_.clear();
}
void HeaderTable::init(uint32_t capacityVal) {
  bytes_ = 0;
  size_ = 0;
  head_ = 0;
  capacity_ = capacityVal;
   
  uint32_t length = (capacityVal >> 5) + 1;
  table_.assign(length, HPACKHeader());
  names_.clear();
}