class documentation

class twisted.names.dns.Charstr: (source)

Implements interfaces: twisted.names.dns.IEncodable

View In Hierarchy

Undocumented

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

Undocumented

string = (source)

Undocumented

def encode(self, strio, compDict=None): (source)

Encode this Character string into the appropriate byte format.

ParametersstrioThe byte representation of this Charstr will be written to this file. (type: file)
compDictUndocumented
def decode(self, strio, length=None): (source)

Decode a byte string into this Charstr.

ParametersstrioBytes will be read from this file until the full string is decoded. (type: file)
lengthUndocumented
RaisesEOFErrorRaised when there are not enough bytes available from strio.
def __eq__(self, other): (source)

Undocumented

ParametersotherUndocumented (type: object)
ReturnsUndocumented (type: bool)
def __hash__(self): (source)

Undocumented

def __str__(self): (source)

Represent this Charstr instance by its string value.

ReturnsUndocumented (type: str)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.