MCPcopy Index your code
hub / github.com/java-native-access/jna / write

Method write

src/com/sun/jna/Memory.java:356–360  ·  view source on GitHub ↗

Indirect the native pointer to malloc space, a la Pointer.write . 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#write(long,byte[],int,int)

(long bOff, byte[] buf, int index, int length)

Source from the content-addressed store, hash-verified

354 * @see Pointer#write(long,byte[],int,int)
355 */
356 @Override
357 public void write(long bOff, byte[] buf, int index, int length) {
358 boundsCheck(bOff, length * 1L);
359 super.write(bOff, buf, index, length);
360 }
361
362 /**
363 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 15

testCFDataMethod · 0.95
setValueMethod · 0.95
getStringMethod · 0.95
setValueMethod · 0.95
setFieldsMethod · 0.95
encodeStringMethod · 0.95
testReadPointerArrayMethod · 0.95
checkPerformanceMethod · 0.95
testStringReturnMethod · 0.95

Calls 1

boundsCheckMethod · 0.95

Tested by 15

testCFDataMethod · 0.76
testReadPointerArrayMethod · 0.76
checkPerformanceMethod · 0.76
testStringReturnMethod · 0.76
copyMethod · 0.36
makeLinuxArmNoflagLibMethod · 0.36