Indirect the native pointer to malloc space, a la Pointer.read . 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#read(long,byte[],int,int)
(long bOff, byte[] buf, int index, int length)
| 238 | * @see Pointer#read(long,byte[],int,int) |
| 239 | */ |
| 240 | @Override |
| 241 | public void read(long bOff, byte[] buf, int index, int length) { |
| 242 | boundsCheck(bOff, length * 1L); |
| 243 | super.read(bOff, buf, index, length); |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Indirect the native pointer to <code>malloc</code> space, a la |