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

Method getInt

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

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

(long offset)

Source from the content-addressed store, hash-verified

512 * @see Pointer#getInt(long)
513 */
514 @Override
515 public int getInt(long offset) {
516 boundsCheck(offset, 4);
517 return super.getInt(offset);
518 }
519
520 /**
521 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 15

testPerfDataBLockMethod · 0.95
testSysctlMethod · 0.95
testProcessStructuresMethod · 0.95
getElementMethod · 0.95
registryGetValueMethod · 0.95
registryGetValuesMethod · 0.95
testSetNativeLongMethod · 0.95
testByteBufferPutIntMethod · 0.95
testIntBufferPutMethod · 0.95
testLookupAccountNameMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 15

testPerfDataBLockMethod · 0.76
testSysctlMethod · 0.76
testProcessStructuresMethod · 0.76
testSetNativeLongMethod · 0.76
testByteBufferPutIntMethod · 0.76
testIntBufferPutMethod · 0.76
testLookupAccountNameMethod · 0.36
testLookupAccountSidMethod · 0.36
testBSTRBasicMethod · 0.36
checkPerformanceMethod · 0.36
testWriteUnionMethod · 0.36