# Class: com.pnfsoftware.jeb.core.units.code.InstructionUtil

Utility methods for [IInstruction](IInstruction) objects.

## Static Method: getOperand
- parameter: `insn`, type: `com.pnfsoftware.jeb.core.units.code.IInstruction`
- parameter: `index`, type: `int`
- return type: `com.pnfsoftware.jeb.core.units.code.IInstructionOperand`

Description: Safely retrieve an operand.
parameter: insn: instruction
parameter: index: operand index
return: null on error

## Static Method: getOperand
- parameter: `insn`, type: `com.pnfsoftware.jeb.core.units.code.IInstruction`
- parameter: `index`, type: `int`
- parameter: `c`, type: `java.lang.Class<T>`
- return type: `T`

Description: Safely retrieve an operand of the expected type.
parameter: insn: instruction
parameter: index: operand index
parameter: c: expected operand type
return: null on error
parameter: T: operand type

## Static Method: getSizeOf
- parameter: `insns`, type: `java.util.List<? extends com.pnfsoftware.jeb.core.units.code.IInstruction>`
- return type: `int`

Description: Compute the size of all the instruction list.
parameter: insns: instruction list
return: the size, in bytes

## Static Method: getSizeUntil
- parameter: `insns`, type: `java.util.List<? extends com.pnfsoftware.jeb.core.units.code.IInstruction>`
- parameter: `limit`, type: `int`
- return type: `int`

Description: Compute the size of the instruction list until nth index.
parameter: insns: instruction list
parameter: limit: nth index.
return: the size, in bytes

