Indirect the native pointer to malloc space, a la Pointer.getShort . But this method performs a bounds checks to ensure that the indirection does not cause memory outside the malloc ed space to be accessed. @see Pointer#getShort(long)
(long offset)
| 498 | * @see Pointer#getShort(long) |
| 499 | */ |
| 500 | @Override |
| 501 | public short getShort(long offset) { |
| 502 | boundsCheck(offset, 2); |
| 503 | return super.getShort(offset); |
| 504 | } |
| 505 | |
| 506 | /** |
| 507 | * Indirect the native pointer to <code>malloc</code> space, a la |