def _decode(self, bytes):
        if len(bytes) < 2:
            raise PDUParseError("Invalid subaddress size %s" % len(bytes), pdu_types.CommandStatus.ESME_RINVOPTPARAMVAL)

        typeTag = self.typeTagEncoder._decode(bytes[0])
        value = OctetStringEncoder(self.getSize() - 1)._decode(bytes[1:])
        return pdu_types.Subaddress(typeTag, value)
dataset/ETHPy150Open jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_encoding.py/SubaddressEncoder._decode/original