public final IRubyObject get(Ruby runtime, MemoryIO io, long offset) { return Util.newUnsigned32(runtime, Integer.reverseBytes(io.getInt(offset))); } }
public final IRubyObject get(Ruby runtime, MemoryIO io, long offset) { return Util.newUnsigned32(runtime, Integer.reverseBytes(io.getInt(offset))); } }
/** * Reads a 32 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_int" }) public IRubyObject read_int(ThreadContext context) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_int" }) public IRubyObject read_int(ThreadContext context) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_uint" }) public IRubyObject read_uint(ThreadContext context) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_int" }) public IRubyObject read_int(ThreadContext context) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_uint" }) public IRubyObject read_uint(ThreadContext context) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint32", "get_uint" }) public IRubyObject get_uint32(ThreadContext context) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_int" }) public IRubyObject read_int(ThreadContext context) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int32", "get_int" }) public IRubyObject get_int32(ThreadContext context) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint32", "get_uint" }) public IRubyObject get_uint32(ThreadContext context) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_uint" }) public IRubyObject read_uint(ThreadContext context) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint32", "get_uint" }) public IRubyObject get_uint32(ThreadContext context) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int32", "get_int" }) public IRubyObject get_int32(ThreadContext context) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int32", "get_int" }) public IRubyObject get_int32(ThreadContext context) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(0)); }
/** * Reads a 32 bit signed integer value from the memory address. * * @param offset The offset from the base pointer address to read the value. * @return The value read from the address. */ @JRubyMethod(name = { "get_int32", "get_int" }, required = 1) public IRubyObject get_int32(ThreadContext context, IRubyObject offset) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(getOffset(offset))); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @param offset The offset from the base pointer address to read the value. * @return The value read from the address. */ @JRubyMethod(name = { "get_uint32", "get_uint" }, required = 1) public IRubyObject get_uint32(ThreadContext context, IRubyObject offset) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(getOffset(offset))); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @param offset The offset from the base pointer address to read the value. * @return The value read from the address. */ @JRubyMethod(name = { "get_uint32", "get_uint" }, required = 1) public IRubyObject get_uint32(ThreadContext context, IRubyObject offset) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(getOffset(offset))); }
/** * Reads a 32 bit signed integer value from the memory address. * * @param offset The offset from the base pointer address to read the value. * @return The value read from the address. */ @JRubyMethod(name = { "get_int32", "get_int" }, required = 1) public IRubyObject get_int32(ThreadContext context, IRubyObject offset) { return Util.newSigned32(context.runtime, getMemoryIO().getInt(getOffset(offset))); }
/** * Reads a 32 bit unsigned integer value from the memory address. * * @param offset The offset from the base pointer address to read the value. * @return The value read from the address. */ @JRubyMethod(name = { "get_uint32", "get_uint" }, required = 1) public IRubyObject get_uint32(ThreadContext context, IRubyObject offset) { return Util.newUnsigned32(context.runtime, getMemoryIO().getInt(getOffset(offset))); }