Пример #1
0
	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
Пример #2
0
	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
Пример #3
0
	def get_obj(self):
		return bytecode.writeuleb128(self.size)
Пример #4
0
	def get_raw(self):
		return bytecode.writeuleb128(self.type_idx) + bytecode.writeuleb128(self.size) + ''.join(i.get_raw() for i in self.elements)
Пример #5
0
 def get_obj(self):
     return bytecode.writeuleb128(self.size)
Пример #6
0
 def get_raw(self):
     return bytecode.writeuleb128(self.type_idx) + bytecode.writeuleb128(
         self.size) + ''.join(i.get_raw() for i in self.elements)