public final IRubyObject get(Ruby runtime, MemoryIO io, long offset) { return Util.newSigned16(runtime, io.getShort(offset)); } }
/** * Reads a 16 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int16", "get_short" }) public IRubyObject get_int16(ThreadContext context) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_ushort" }) public IRubyObject read_ushort(ThreadContext context) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_short" }) public IRubyObject read_short(ThreadContext context) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint16", "get_ushort" }) public IRubyObject get_uint16(ThreadContext context) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_ushort" }) public IRubyObject read_ushort(ThreadContext context) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int16", "get_short" }) public IRubyObject get_int16(ThreadContext context) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_ushort" }) public IRubyObject read_ushort(ThreadContext context) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_short" }) public IRubyObject read_short(ThreadContext context) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int16", "get_short" }) public IRubyObject get_int16(ThreadContext context) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_short" }) public IRubyObject read_short(ThreadContext context) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint16", "get_ushort" }) public IRubyObject get_uint16(ThreadContext context) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_short" }) public IRubyObject read_short(ThreadContext context) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint16", "get_ushort" }) public IRubyObject get_uint16(ThreadContext context) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(0)); }
/** * Reads a 16 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_int16", "get_short" }, required = 1) public IRubyObject get_int16(ThreadContext context, IRubyObject offset) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(getOffset(offset))); }
/** * Reads a 16 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_uint16", "get_ushort" }, required = 1) public IRubyObject get_uint16(ThreadContext context, IRubyObject offset) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(getOffset(offset))); }
/** * Reads a 16 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_int16", "get_short" }, required = 1) public IRubyObject get_int16(ThreadContext context, IRubyObject offset) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(getOffset(offset))); }
/** * Reads a 16 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_uint16", "get_ushort" }, required = 1) public IRubyObject get_uint16(ThreadContext context, IRubyObject offset) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(getOffset(offset))); }
/** * Reads a 16 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_int16", "get_short" }, required = 1) public IRubyObject get_int16(ThreadContext context, IRubyObject offset) { return Util.newSigned16(context.runtime, getMemoryIO().getShort(getOffset(offset))); }
/** * Reads a 16 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_uint16", "get_ushort" }, required = 1) public IRubyObject get_uint16(ThreadContext context, IRubyObject offset) { return Util.newUnsigned16(context.runtime, getMemoryIO().getShort(getOffset(offset))); }