Skip to content

JDWX DNSQuery BitMap

JDW edited this page Jul 17, 2022 · 1 revision

JDWX\DNSQuery\BitMap

A class to handle converting RR bitmaps to arrays and back; used on NSEC and NSEC3 RRs.

  • Class name: BitMap
  • Namespace: \JDWX\DNSQuery

Methods

arrayToBitMap

string JDWX\DNSQuery\BitMap::arrayToBitMap(string[] i_data)

builds a RR Bit map from an array of RR type names

  • Visibility: public
  • This method is static.

Arguments

  • i_data string[] - a list of RR type names

bigBaseConvert

string JDWX\DNSQuery\BitMap::bigBaseConvert(string number)

a base_convert that handles large numbers; forced to 2/16

  • Visibility: public
  • This method is static.

Arguments

  • number string - a bit string

bitMapToArray

string[] JDWX\DNSQuery\BitMap::bitMapToArray(string data)

parses a RR bitmap field defined in RFC3845, into an array of RR names.

Type Bit Map(s) Field = ( Window Block # | Bitmap Length | Bitmap ) +

  • Visibility: public
  • This method is static.

Arguments

  • data string - a bitmap string to parse
Clone this wiki locally