public final IRubyObject get(Ruby runtime, MemoryIO io, long offset) { return runtime.newBoolean(io.getByte(offset) != 0); } }
/** * Reads an 8 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_uchar" }) public IRubyObject read_uchar(ThreadContext context) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int8", "get_char" }) public IRubyObject get_int8(ThreadContext context) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_char" }) public IRubyObject read_char(ThreadContext context) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint8", "get_uchar" }) public IRubyObject get_uint8(ThreadContext context) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_uint8", "get_uchar" }) public IRubyObject get_uint8(ThreadContext context) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int8", "get_char" }) public IRubyObject get_int8(ThreadContext context) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_char" }) public IRubyObject read_char(ThreadContext context) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_char" }) public IRubyObject read_char(ThreadContext context) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int8", "get_char" }) public IRubyObject get_int8(ThreadContext context) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit signed integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "get_int8", "get_char" }) public IRubyObject get_int8(ThreadContext context) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_uchar" }) public IRubyObject read_uchar(ThreadContext context) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 bit unsigned integer value from the memory address. * * @return The value read from the address. */ @JRubyMethod(name = { "read_uchar" }) public IRubyObject read_uchar(ThreadContext context) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(0)); }
/** * Reads an 8 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_uint8", "get_uchar" }, required = 1) public IRubyObject get_uint8(ThreadContext context, IRubyObject offset) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(getOffset(offset))); }
/** * Reads an 8 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_uint8", "get_uchar" }, required = 1) public IRubyObject get_uint8(ThreadContext context, IRubyObject offset) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(getOffset(offset))); }
/** * Reads an 8 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_int8", "get_char" }, required = 1) public IRubyObject get_int8(ThreadContext context, IRubyObject offset) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(getOffset(offset))); }
/** * Reads an 8 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_int8", "get_char" }, required = 1) public IRubyObject get_int8(ThreadContext context, IRubyObject offset) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(getOffset(offset))); }
/** * Reads an 8 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_uint8", "get_uchar" }, required = 1) public IRubyObject get_uint8(ThreadContext context, IRubyObject offset) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(getOffset(offset))); }
/** * Reads an 8 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_int8", "get_char" }, required = 1) public IRubyObject get_int8(ThreadContext context, IRubyObject offset) { return Util.newSigned8(context.runtime, getMemoryIO().getByte(getOffset(offset))); }
/** * Reads an 8 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_uint8", "get_uchar" }, required = 1) public IRubyObject get_uint8(ThreadContext context, IRubyObject offset) { return Util.newUnsigned8(context.runtime, getMemoryIO().getByte(getOffset(offset))); }