| 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.
| 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. |
Assert that the specified number is a legal value with which to instantiate a NXT type bitmap. Raise on error, do nothing on success.
Convert a numeric type code to its corresponding name (e.g. "A" => 1). Unknown types are named "TYPE#{number}".
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.