public final void setByte(int offset, byte value) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JBYTE);
   osMemory.setByte(osaddr + offset, value);
 }
 public final void setByteArray(int offset, byte[] bytes, int bytesOffset, int length) {
   memorySpy.rangeCheck(this, offset, length * SIZEOF_JBYTE);
   osMemory.setByteArray(osaddr + offset, bytes, bytesOffset, length);
 }
 public final void setDouble(int offset, double value) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JDOUBLE);
   osMemory.setDouble(osaddr + offset, value);
 }
 public final double getDouble(int offset) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JDOUBLE);
   return osMemory.getDouble(osaddr + offset);
 }
 public final void setFloat(int offset, float value) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JFLOAT);
   osMemory.setFloat(osaddr + offset, value);
 }
 public final float getFloat(int offset) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JFLOAT);
   return osMemory.getFloat(osaddr + offset);
 }
 public final void setLong(int offset, long value) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JLONG);
   osMemory.setLong(osaddr + offset, value);
 }
 public final long getLong(int offset) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JLONG);
   return osMemory.getLong(osaddr + offset);
 }
 public final void setInt(int offset, int value) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JINT);
   osMemory.setInt(osaddr + offset, value);
 }
 public final int getInt(int offset) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JINT);
   return osMemory.getInt(osaddr + offset);
 }
 public final short getShort(int offset) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JSHORT);
   return osMemory.getShort(osaddr + offset);
 }
 public final void setShort(int offset, short value) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JSHORT);
   osMemory.setShort(osaddr + offset, value);
 }
 public final byte getByte(int offset) {
   memorySpy.rangeCheck(this, offset, SIZEOF_JBYTE);
   return osMemory.getByte(osaddr + offset);
 }
 public final void setIntArray(int offset, int[] ints, int intsOffset, int length, boolean swap) {
   memorySpy.rangeCheck(this, offset, length * SIZEOF_JINT);
   osMemory.setIntArray(osaddr + offset, ints, intsOffset, length, swap);
 }
 // BEGIN android-added
 public final void setShortArray(
     int offset, short[] shorts, int shortsOffset, int length, boolean swap) {
   memorySpy.rangeCheck(this, offset, length * SIZEOF_JSHORT);
   osMemory.setShortArray(osaddr + offset, shorts, shortsOffset, length, swap);
 }