void BinaryProtocolReader::checkContainerSize(int32_t size) {
  if (size < 0) {
    TProtocolException::throwNegativeSize();
  } else if (this->container_limit_ && size > this->container_limit_) {
    TProtocolException::throwExceededSizeLimit();
  }
}
void BinaryProtocolReader::checkContainerSize(int32_t size) {
  if (size < 0) {
    TProtocolException::throwNegativeSize();
  } else if (this->container_limit_ && size > this->container_limit_) {
    TProtocolException::throwExceededSizeLimit();
  }
}