Module Dnsruby::RR::NXT::NxtTypes
In: lib/dnsruby/resource/NXT.rb

Methods used to manipulate the storage and representation of record types as stored in NXT record bitmaps.

Methods

Constants

MAX_BITMAP_NUMBER_VALUE = (2 ** 128) - 1 - 1   Maximum bitmap size is 128 bytes; since it‘s zero offset values are 0..(2 ** 128 - 1). However, the least significant bit must not be set, so the maximum is 1 less than that.

Public Instance methods

Assert that the specified number is a legal value with which to instantiate a NXT type bitmap. Raise on error, do nothing on success.

From a binary string of type code bits, return an array of type codes.

From a binary string of type code bits, return an array of type names.

Convert a numeric type code to its corresponding name (e.g. "A" => 1). Unknown types are named "TYPE#{number}".

From an array of type codes, return a binary string.

For the given array of type codes, return an array of their corresponding names.

Generate a string containing the names corresponding to the numeric type codes. Sort it by the numeric type code, ascending.

Convert a type name to its corresponding numeric type code. Names matching /^TYPE(\d+)$/ are assumed to have a code corresponding to the numeric value of the substring following ‘TYPE’.

For the specified string containing names (e.g. ‘A NS’), return an array containing the corresponding codes.

For a given array of type names, return an array of codes.

[Validate]