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

Method setLong

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

Indirect the native pointer to malloc space, a la Pointer.setLong . 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#setLong

(long offset, long value)

Source from the content-addressed store, hash-verified

678 * @see Pointer#setLong
679 */
680 @Override
681 public void setLong(long offset, long value) {
682 boundsCheck(offset, 8);
683 super.setLong(offset, value);
684 }
685
686 /**
687 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 12

testGetNativeLongMethod · 0.95
testAccessViolationMethod · 0.95
testByteBufferGetLongMethod · 0.95
testLongBufferGetMethod · 0.95
setValueMethod · 0.45
setValueMethod · 0.45
setValueMethod · 0.45
setValueMethod · 0.45
testNativeLongReadMethod · 0.45
setValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 7

testGetNativeLongMethod · 0.76
testAccessViolationMethod · 0.76
testByteBufferGetLongMethod · 0.76
testLongBufferGetMethod · 0.76
testNativeLongReadMethod · 0.36