|
__init__(self,
width,
word_size,
word_sep,
word_fmt=' %x ' ,
addr_type=0,
word_base=16,
uppercase=False)
Constructor. |
source code
|
|
|
|
|
valid_bits(self,
bits)
Returns:
True if network address is valid for this address type,
False otherwise. |
source code
|
|
|
bits_to_int(self,
bits)
Returns:
A network byte order integer that is equivalent to value represented
by network address in readable binary form. |
source code
|
|
|
valid_int(self,
int_val)
Returns:
True if network byte order integer falls within the
boundaries of this address type, False otherwise. |
source code
|
|
|
int_to_str(self,
int_val)
Returns:
A network address in string form that is equivalent to value
represented by a network byte order integer. |
source code
|
|
|
int_to_bits(self,
int_val)
Returns:
A network address in readable binary form that is equivalent to value
represented by a network byte order integer. |
source code
|
|
|
int_to_bin(self,
int_val)
Returns:
A network address in standard binary representation format that is
equivalent to integer address value. |
source code
|
|
|
|
|
int_to_packed(self,
int_val)
Returns:
a packed string that is equivalent to value represented by a network
byte order integer. |
source code
|
|
|
packed_to_int(self,
packed_int)
Returns:
A network byte order integer that is equivalent to value of network
address represented by packed binary string. |
source code
|
|
|
valid_str(self,
addr)
Returns:
True if network address in string form is valid for this
address type, False otherwise. |
source code
|
|
|
str_to_int(self,
addr)
Returns:
A network byte order integer that is equivalent to value represented
by network address in string form. |
source code
|
|
|
valid_words(self,
words)
Returns:
True if word sequence is valid for this address type,
False otherwise. |
source code
|
|
|
words_to_int(self,
words)
Returns:
A network byte order integer that is equivalent to value represented
by word sequence. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|