MCPcopy
hub / github.com/cea-sec/miasm / zeroExtend

Method zeroExtend

miasm/expression/expression.py:633–640  ·  view source on GitHub ↗

Zero extend to size @size: int

(self, size)

Source from the content-addressed store, hash-verified

631 return self[self.size - 1:self.size]
632
633 def zeroExtend(self, size):
634 """Zero extend to size
635 @size: int
636 """
637 assert self.size <= size
638 if self.size == size:
639 return self
640 return ExprOp('zeroExt_%d' % size, self)
641
642 def signExtend(self, size):
643 """Sign extend to size

Callers 15

lbuFunction · 0.80
lhuFunction · 0.80
extFunction · 0.80
multuFunction · 0.80
mn_do_addFunction · 0.80
mn_do_loadFunction · 0.80
mn_do_mulFunction · 0.80
mn_do_subFunction · 0.80
extend_argFunction · 0.80
get_mem_accessFunction · 0.80
ldr_sizeFunction · 0.80
ldaxrbFunction · 0.80

Calls 1

ExprOpClass · 0.85

Tested by

no test coverage detected