def __init__(self, data='', length=0): self.data = BER.unpack_varint(data, length)
def __init__(self, data=None, length=0): self.__dict__ = BER.decoder(data, self.tagmap)
def pack(self): # print ("Kuch to hua hai") return BER.encoder(self.__dict__, self.tagmap)
def pack(self): return BER.encoder(self.__dict__, self.tagmap)
def __init__(self, data=None, length=0): self.tagmap[(128, 32, 1)] = ('array', Data) self.tagmap[(128, 32, 2)] = ('structure', Data) self.data = BER.decoder(data, self.tagmap, decode_as_list=True)
def pack(self): #print('GOOSEPDU pack') try: return BER.encoder(self.__dict__, self.tagmap) except: print("GOOSEPDU pack: Unexpected error:", sys.exc_info())
def __init__(self, data=None, length=0): self.tagmap[(128,32,1)] = ('array', Data) self.tagmap[(128,32,2)] = ('structure', Data) self.data = BER.decoder(data, self.tagmap, decode_as_list=True)