Indirect the native pointer to malloc space, a la Pointer.getDouble . But this method performs a bounds check to ensure that the indirection does not cause memory outside the malloc ed space to be accessed. @see Pointer#getDouble(long)
(long offset)
| 554 | * @see Pointer#getDouble(long) |
| 555 | */ |
| 556 | @Override |
| 557 | public double getDouble(long offset) { |
| 558 | boundsCheck(offset, 8); |
| 559 | return super.getDouble(offset); |
| 560 | } |
| 561 | |
| 562 | /** |
| 563 | * Indirect the native pointer to <code>malloc</code> space, a la |