class documentation

class Charstr: (source)

Implements interfaces: twisted.names.dns.IEncodable

View In Hierarchy

Undocumented

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method __str__ Represent this Charstr instance by its string value.
Method decode Decode a byte string into this Charstr.
Method encode Encode this Character string into the appropriate byte format.
Instance Variable string Undocumented
def __eq__(self, other): (source)

Undocumented

Parameters
other:objectUndocumented
Returns
boolUndocumented
def __hash__(self): (source)

Undocumented

def __init__(self, string=b''): (source)

Undocumented

def __str__(self): (source)
Represent this Charstr instance by its string value.
Returns
strUndocumented
def decode(self, strio, length=None): (source)
Decode a byte string into this Charstr.
Parameters
strio:fileBytes will be read from this file until the full string is decoded.
lengthUndocumented
Raises
EOFErrorRaised when there are not enough bytes available from strio.
def encode(self, strio, compDict=None): (source)
Encode this Character string into the appropriate byte format.
Parameters
strio:fileThe byte representation of this Charstr will be written to this file.
compDictUndocumented
string = (source)

Undocumented