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

Method getFloat

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

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

(long offset)

Source from the content-addressed store, hash-verified

540 * @see Pointer#getFloat(long)
541 */
542 @Override
543 public float getFloat(long offset) {
544 boundsCheck(offset, 4);
545 return super.getFloat(offset);
546 }
547
548 /**
549 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 5

getElementMethod · 0.95
testFloatBufferPutMethod · 0.95
getValueMethod · 0.45
toPrimitiveArrayMethod · 0.45
getValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 1

testFloatBufferPutMethod · 0.76