Indirect the native pointer to malloc space, a la Pointer.getInt . 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#getInt(long)
(long offset)
| 512 | * @see Pointer#getInt(long) |
| 513 | */ |
| 514 | @Override |
| 515 | public int getInt(long offset) { |
| 516 | boundsCheck(offset, 4); |
| 517 | return super.getInt(offset); |
| 518 | } |
| 519 | |
| 520 | /** |
| 521 | * Indirect the native pointer to <code>malloc</code> space, a la |