MCPcopy Create free account
hub / github.com/java-native-access/jna / getDouble

Method getDouble

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

Indirect the native pointer to malloc space, a la Pointer.getDouble . But this method performs a bounds check to ensure that the indirection does not cause memory outside the malloc ed space to be accessed. @see Pointer#getDouble(long)

(long offset)

Source from the content-addressed store, hash-verified

554 * @see Pointer#getDouble(long)
555 */
556 @Override
557 public double getDouble(long offset) {
558 boundsCheck(offset, 8);
559 return super.getDouble(offset);
560 }
561
562 /**
563 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 6

getElementMethod · 0.95
testDoubleBufferPutMethod · 0.95
getValueMethod · 0.45
toPrimitiveArrayMethod · 0.45
checkPerformanceMethod · 0.45
getValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 2

testDoubleBufferPutMethod · 0.76
checkPerformanceMethod · 0.36