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

Method setByte

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

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

(long offset, byte value)

Source from the content-addressed store, hash-verified

622 * @see Pointer#setByte
623 */
624 @Override
625 public void setByte(long offset, byte value) {
626 boundsCheck(offset, 1);
627 super.setByte(offset, value);
628 }
629
630 /**
631 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 10

testReportEventMethod · 0.95
putElementMethod · 0.95
testDumpMethod · 0.95
testByteBufferGetByteMethod · 0.95
setValueMethod · 0.45
ensureAllocatedMethod · 0.45
NativeStringMethod · 0.45
setValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 6

testReportEventMethod · 0.76
testDumpMethod · 0.76
testByteBufferGetByteMethod · 0.76
ensureAllocatedMethod · 0.36