# Returns the length of the instruction # # Return type: int def length @ida.get_item_size(offset) end # Returns the offset of the last byte that belongs to the instruction # # Return type: ea def end offset + length - 1 end # Returns all bytes belonging to the instruction # # Return type: [ unsigned int ] def bytes @ida.get_many_bytes(offset, length).unpack("C*") end