def __init__(self, pkr, dec_mapping, enc_mapping, dec_default=NotImplemented, enc_default=NotImplemented): Adapter.__init__(self, pkr) self.enc_mapping = enc_mapping self.enc_default = enc_default self.dec_mapping = dec_mapping self.dec_default = dec_default
def __init__(self, underlying, **flags): Adapter.__init__(self, underlying) self.flags = flags
def __init__(self, length, padchar = six.b("\x00"), strict = False): self.length = _contextify(length) self.padchar = padchar self.strict = strict Adapter.__init__(self, Raw(self.length))
def __init__(self, underlying, encoding): Adapter.__init__(self, underlying) self.encoding = encoding
def __init__(self, lengthpkr): underlying = Sequence(lengthpkr, Raw(this[0])) Adapter.__init__(self, underlying)
def __init__(self, lengthpkr): Adapter.__init__(self, Sequence(lengthpkr, Raw(this[0])))
def __init__(self, underlying, bits): Adapter.__init__(self, underlying) self.maxval = 1 << bits self.midval = self.maxval >> 1
def __init__(self): self.fmt = _struct.Struct(self.FORMAT) Adapter.__init__(self, Raw(self.fmt.size))
def __init__(self, width, swapped=False, signed=False, bytesize=8): Adapter.__init__(self, Raw(width)) self.width = width self.swapped = swapped self.signed = signed self.bytesize = bytesize
def __init__(self, bottom, top): Adapter.__init__(self, bottom) self.top = top
def __init__(self, length, padchar=six.b("\x00"), strict=False): self.length = _contextify(length) self.padchar = padchar self.strict = strict Adapter.__init__(self, Raw(self.length))
def __init__(self, pkr, dec_mapping, enc_mapping, dec_default = NotImplemented, enc_default = NotImplemented): Adapter.__init__(self, pkr) self.enc_mapping = enc_mapping self.enc_default = enc_default self.dec_mapping = dec_mapping self.dec_default = dec_default
def __init__(self, underlying, **fields): Adapter.__init__(self, underlying) self.fields = [(k, offset, (1 << size) - 1) for k, (offset, size) in fields.items()]
def __init__(self, width, swapped = False, signed = False, bytesize = 8): Adapter.__init__(self, Raw(width)) self.width = width self.swapped = swapped self.signed = signed self.bytesize = bytesize