def get_length(self): length = len(bytecode.writeuleb128(self.type_idx) + bytecode.writeuleb128(self.size)) for i in self.elements: length += i.get_length() return length
def get_obj(self): return bytecode.writeuleb128(self.size)
def get_raw(self): return bytecode.writeuleb128(self.type_idx) + bytecode.writeuleb128(self.size) + ''.join(i.get_raw() for i in self.elements)
def get_raw(self): return bytecode.writeuleb128(self.type_idx) + bytecode.writeuleb128( self.size) + ''.join(i.get_raw() for i in self.elements)