Lines Matching defs:address

45     // Native allocation address;
46 // may be smaller than the base address due to page-size rounding
50 // Native base address
52 private final long address;
55 * Creates a new native object that is based at the given native address.
57 NativeObject(long address) {
58 this.allocationAddress = address;
59 this.address = address;
63 * Creates a new native object allocated at the given native address but
66 NativeObject(long address, long offset) {
67 this.allocationAddress = address;
68 this.address = address + offset;
76 this.address = this.allocationAddress;
81 this.address = a + ps - (a & (ps - 1));
86 * Returns the native base address of this native object.
88 * @return The native base address
90 long address() {
91 return address;
109 return new NativeObject(offset + address);
113 * Reads an address from this native object at the given offset and
114 * constructs a native object using that address.
117 * The offset of the address to be read. Note that the size of an
118 * address is implementation-dependent.
120 * @return The native object created using the address read from the
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
144 * The offset at which the address is to be written. Note that the
145 * size of an address is implementation-dependent.
148 * The native object whose address is to be written
153 putLong(offset, ob.address);
156 putInt(offset, (int)(ob.address & 0x00000000FFFFFFFF));
176 return unsafe.getByte(offset + address);
181 * base address.
190 unsafe.putByte(offset + address, value);
203 return unsafe.getShort(offset + address);
208 * base address.
217 unsafe.putShort(offset + address, value);
230 return unsafe.getChar(offset + address);
235 * base address.
244 unsafe.putChar(offset + address, value);
257 return unsafe.getInt(offset + address);
262 * base address.
271 unsafe.putInt(offset + address, value);
284 return unsafe.getLong(offset + address);
289 * base address.
298 unsafe.putLong(offset + address, value);
311 return unsafe.getFloat(offset + address);
316 * base address.
325 unsafe.putFloat(offset + address, value);
338 return unsafe.getDouble(offset + address);
343 * base address.
352 unsafe.putDouble(offset + address, value);
356 * Returns the native architecture's address size in bytes.
358 * @return The address size of the native architecture