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

Method getLong

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

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

(long offset)

Source from the content-addressed store, hash-verified

526 * @see Pointer#getLong(long)
527 */
528 @Override
529 public long getLong(long offset) {
530 boundsCheck(offset, 8);
531 return super.getLong(offset);
532 }
533
534 /**
535 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 15

testEvtOpenLogMethod · 0.95
registryGetValueMethod · 0.95
registryGetValuesMethod · 0.95
testSetNativeLongMethod · 0.95
testByteBufferPutLongMethod · 0.95
testLongBufferPutMethod · 0.95
testXGetWMProtocolsMethod · 0.45
longValueMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 9

testEvtOpenLogMethod · 0.76
testSetNativeLongMethod · 0.76
testByteBufferPutLongMethod · 0.76
testLongBufferPutMethod · 0.76
testXGetWMProtocolsMethod · 0.36
checkPerformanceMethod · 0.36
testReadTypeInfoMethod · 0.36
testNativeLongWriteMethod · 0.36
testByteBufferGetLongMethod · 0.36