PNG
IHDR ; IDATxܻn0K
)(pA7LeG{ §㻢|ذaÆ
6lذaÆ
6lذaÆ
6lom$^yذag5 bÆ
6lذaÆ
6lذa{
6lذaÆ
`}HFkm,mӪôô!x|'ܢ˟;E:9&ᶒ}{v]n&6
h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%tMז -lG6mrz2s%9s@-k9=)kB5\+͂ZsٲRn~GRCwIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL /F*\Ԕ#"5m2[S=gnaPeғL
lذaÆ
6l^ḵaÆ
6lذaÆ
6lذa;
_ذaÆ
6lذaÆ
6lذaÆ
R IENDB`
Shared logic for various address types.
|
bytes_to_bits()
Returns:
A 256 element list containing 8-bit binary digit strings. |
|
|
|
valid_words(words,
word_size,
num_words)
Returns:
True if word sequence is valid for this address type,
False otherwise. |
|
|
|
int_to_words(int_val,
word_size,
num_words)
Returns:
A tuple contain unsigned integer word values split according to
provided arguments. |
|
|
|
words_to_int(words,
word_size,
num_words)
Returns:
An unsigned integer that is equivalent to value represented by word
sequence. |
|
|
|
valid_bits(bits,
width,
word_sep='
' )
Returns:
True if network address is valid, False
otherwise. |
|
|
|
bits_to_int(bits,
width,
word_sep='
' )
Returns:
An unsigned integer that is equivalent to value represented by
network address in readable binary form. |
|
|
|
int_to_bits(int_val,
word_size,
num_words,
word_sep='
' )
Returns:
A network address in a delimited binary string format that is
equivalent in value to unsigned integer. |
|
|
|
valid_bin(bin_val,
width)
Returns:
True if network address is valid, False
otherwise. |
|
|
|
int_to_bin(int_val,
width)
Returns:
Equivalent string value in Python's binary representation format
('0bxxx'). |
|
|
|
bin_to_int(bin_val,
width)
Returns:
An unsigned integer that is equivalent to value represented by Python
binary string format. |
|
|