CompactProtocolReader::matchTypeHeader(uint8_t byte, TType type, uint8_t diff) {
  if (type == TType::T_BOOL) {
    if ((byte == (detail::compact::CT_BOOLEAN_TRUE | (diff << 4))) ||
        (byte == (detail::compact::CT_BOOLEAN_FALSE | (diff << 4)))) {
      boolValue_.hasBoolValue = true;
      boolValue_.boolValue = byte & 1;
      return true;
    }
    return false;
  } else {
    return byte == (detail::compact::TTypeToCType[type] | (diff << 4));
  }
}
CompactProtocolReader::matchTypeHeader(uint8_t byte, TType type, uint8_t diff) {
  if (type == TType::T_BOOL) {
    if ((byte == (detail::compact::CT_BOOLEAN_TRUE | (diff << 4))) ||
        (byte == (detail::compact::CT_BOOLEAN_FALSE | (diff << 4)))) {
      boolValue_.hasBoolValue = true;
      boolValue_.boolValue = byte & 1;
      return true;
    }
    return false;
  } else {
    return byte == (detail::compact::TTypeToCType[type] | (diff << 4));
  }
}