class documentation

class Charstr: (source)

Constructor: Charstr(string)

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: object) -> bool: (source)

Undocumented

def __hash__(self): (source)

Undocumented

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

Undocumented

def __str__(self) -> str: (source)

Represent this Charstr instance by its string value.

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

Undocumented