Lines Matching refs:offset

64      * whose base is at the additional offset.
66 NativeObject(long address, long offset) {
68 this.address = address + offset;
99 * Creates a new native object starting at the given offset from the base
102 * @param offset
103 * The offset from the base of this native object that is to be
108 NativeObject subObject(int offset) {
109 return new NativeObject(offset + address);
113 * Reads an address from this native object at the given offset and
116 * @param offset
117 * The offset of the address to be read. Note that the size of an
121 * given offset
123 NativeObject getObject(int offset) {
127 newAddress = unsafe.getLong(offset + address);
130 newAddress = unsafe.getInt(offset + address) & 0x00000000FFFFFFFF;
140 * Writes the base address of the given native object at the given offset
143 * @param offset
144 * The offset at which the address is to be written. Note that the
150 void putObject(int offset, NativeObject ob) {
153 putLong(offset, ob.address);
156 putInt(offset, (int)(ob.address & 0x00000000FFFFFFFF));
167 * Reads a byte starting at the given offset from base of this native
170 * @param offset
171 * The offset at which to read the byte
175 final byte getByte(int offset) {
176 return unsafe.getByte(offset + address);
180 * Writes a byte at the specified offset from this native object's
183 * @param offset
184 * The offset at which to write the byte
189 final void putByte(int offset, byte value) {
190 unsafe.putByte(offset + address, value);
194 * Reads a short starting at the given offset from base of this native
197 * @param offset
198 * The offset at which to read the short
202 final short getShort(int offset) {
203 return unsafe.getShort(offset + address);
207 * Writes a short at the specified offset from this native object's
210 * @param offset
211 * The offset at which to write the short
216 final void putShort(int offset, short value) {
217 unsafe.putShort(offset + address, value);
221 * Reads a char starting at the given offset from base of this native
224 * @param offset
225 * The offset at which to read the char
229 final char getChar(int offset) {
230 return unsafe.getChar(offset + address);
234 * Writes a char at the specified offset from this native object's
237 * @param offset
238 * The offset at which to write the char
243 final void putChar(int offset, char value) {
244 unsafe.putChar(offset + address, value);
248 * Reads an int starting at the given offset from base of this native
251 * @param offset
252 * The offset at which to read the int
256 final int getInt(int offset) {
257 return unsafe.getInt(offset + address);
261 * Writes an int at the specified offset from this native object's
264 * @param offset
265 * The offset at which to write the int
270 final void putInt(int offset, int value) {
271 unsafe.putInt(offset + address, value);
275 * Reads a long starting at the given offset from base of this native
278 * @param offset
279 * The offset at which to read the long
283 final long getLong(int offset) {
284 return unsafe.getLong(offset + address);
288 * Writes a long at the specified offset from this native object's
291 * @param offset
292 * The offset at which to write the long
297 final void putLong(int offset, long value) {
298 unsafe.putLong(offset + address, value);
302 * Reads a float starting at the given offset from base of this native
305 * @param offset
306 * The offset at which to read the float
310 final float getFloat(int offset) {
311 return unsafe.getFloat(offset + address);
315 * Writes a float at the specified offset from this native object's
318 * @param offset
319 * The offset at which to write the float
324 final void putFloat(int offset, float value) {
325 unsafe.putFloat(offset + address, value);
329 * Reads a double starting at the given offset from base of this native
332 * @param offset
333 * The offset at which to read the double
337 final double getDouble(int offset) {
338 return unsafe.getDouble(offset + address);
342 * Writes a double at the specified offset from this native object's
345 * @param offset
346 * The offset at which to write the double
351 final void putDouble(int offset, double value) {
352 unsafe.putDouble(offset + address, value);