Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
0
	def get_obj(self):
		return bytecode.writeuleb128(self.size)
Exemplo n.º 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)
Exemplo n.º 5
0
 def get_obj(self):
     return bytecode.writeuleb128(self.size)
Exemplo n.º 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)