Indirect the native pointer to malloc space, a la Pointer.getFloat . 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#getFloat(long)
(long offset)
| 540 | * @see Pointer#getFloat(long) |
| 541 | */ |
| 542 | @Override |
| 543 | public float getFloat(long offset) { |
| 544 | boundsCheck(offset, 4); |
| 545 | return super.getFloat(offset); |
| 546 | } |
| 547 | |
| 548 | /** |
| 549 | * Indirect the native pointer to <code>malloc</code> space, a la |