debugAssertValid static method

bool debugAssertValid(
  1. int resourceRecordType
)

Checks that a given int is a valid ResourceRecordType.

This method is intended to be called only from an assert().

Implementation

static bool debugAssertValid(int resourceRecordType) {
  return resourceRecordType == addressIPv4 ||
      resourceRecordType == addressIPv6 ||
      resourceRecordType == serverPointer ||
      resourceRecordType == service ||
      resourceRecordType == text;
}