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

Method setInt

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

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

(long offset, int value)

Source from the content-addressed store, hash-verified

664 * @see Pointer#setInt
665 */
666 @Override
667 public void setInt(long offset, int value) {
668 boundsCheck(offset, 4);
669 super.setInt(offset, value);
670 }
671
672 /**
673 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 15

setValueMethod · 0.95
setValueMethod · 0.95
putElementMethod · 0.95
testGetNativeLongMethod · 0.95
checkPerformanceMethod · 0.95
testAccessViolationMethod · 0.95
testByteBufferGetIntMethod · 0.95
testIntBufferGetMethod · 0.95
testXrenderMethod · 0.45
setValueMethod · 0.45
setValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 15

testGetNativeLongMethod · 0.76
checkPerformanceMethod · 0.76
testAccessViolationMethod · 0.76
testByteBufferGetIntMethod · 0.76
testIntBufferGetMethod · 0.76
testXrenderMethod · 0.36
testDisableAutoSynchMethod · 0.36
testReadUnionMethod · 0.36
testReadTypedUnionMethod · 0.36
testNativeLongReadMethod · 0.36