self.tag = getattr(self, "impl", self.tag_default) if impl is None else impl
self._expl = getattr(self, "expl", None) if expl is None else expl
if self.tag != self.tag_default and self._expl is not None:
self.tag = getattr(self, "impl", self.tag_default) if impl is None else impl
self._expl = getattr(self, "expl", None) if expl is None else expl
if self.tag != self.tag_default and self._expl is not None:
eoc_expected, tail = tail[:EOC_LEN], tail[EOC_LEN:]
if eoc_expected.tobytes() != EOC:
raise DecodeError(
eoc_expected, tail = tail[:EOC_LEN], tail[EOC_LEN:]
if eoc_expected.tobytes() != EOC:
raise DecodeError(
if t == self.tag_constructed:
if not ctx.get("bered", False):
raise DecodeError(
if t == self.tag_constructed:
if not ctx.get("bered", False):
raise DecodeError(
decode_path=len(chunks) - 1,
offset=chunks[-1].offset,
)
decode_path=len(chunks) - 1,
offset=chunks[-1].offset,
)
for chunk_i, chunk in enumerate(chunks[:-1]):
if chunk.bit_len % 8 != 0:
raise DecodeError(
for chunk_i, chunk in enumerate(chunks[:-1]):
if chunk.bit_len % 8 != 0:
raise DecodeError(
if t == self.tag_constructed:
if not ctx.get("bered", False):
raise DecodeError(
if t == self.tag_constructed:
if not ctx.get("bered", False):
raise DecodeError(
decode_path=len(chunks) - 1,
offset=chunks[-1].offset,
)
decode_path=len(chunks) - 1,
offset=chunks[-1].offset,
)