InternalThe mDNS flush bit (answers) or QU bit (questions)
ReadonlyidThe numeric class identifier
ReadonlynameThe string name of the class (e.g. IN, CH)
Static ReadonlyID_Maps numeric class IDs to their string names
Static ReadonlyNAME_Maps string class names to their numeric IDs
Returns the class as a 2-byte big-endian Buffer, with flush/QU bit injected
Returns the class name as a string
StaticfromDecodes a Resource Record Class from the byte stream
the byte stream or raw buffer
StaticidStaticinjectInjects the flush/QU bit into a class ID to produce the raw 16-bit value
the base class ID
whether to set the high bit
StaticnameStaticparseExtracts the flush/QU bit and base class ID from a raw 16-bit class value
the raw 16-bit class field value
Handles encoding and decoding of DNS resource record classes, including the mDNS flush/QU bit in the high bit of the class field.