Indirect the native pointer to malloc space, a la Pointer.getByte . 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#getByte(long)
(long offset)
| 484 | * @see Pointer#getByte(long) |
| 485 | */ |
| 486 | @Override |
| 487 | public char getChar(long offset) { |
| 488 | boundsCheck(offset, Native.WCHAR_SIZE); |
| 489 | return super.getChar(offset); |
| 490 | } |
| 491 | |
| 492 | /** |
| 493 | * Indirect the native pointer to <code>malloc</code> space, a la |