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

Method getByte

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

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

(long offset)

Source from the content-addressed store, hash-verified

470 * @see Pointer#getByte(long)
471 */
472 @Override
473 public byte getByte(long offset) {
474 boundsCheck(offset, 1);
475 return super.getByte(offset);
476 }
477
478 /**
479 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 9

getElementMethod · 0.95
testByteBufferPutByteMethod · 0.95
getValueMethod · 0.45
getValueMethod · 0.45
toPrimitiveArrayMethod · 0.45
getValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 1

testByteBufferPutByteMethod · 0.76