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

Method getChar

src/com/sun/jna/Memory.java:486–490  ·  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

484 * @see Pointer#getByte(long)
485 */
486 @Override
487 public char getChar(long offset) {
488 boundsCheck(offset, Native.WCHAR_SIZE);
489 return super.getChar(offset);
490 }
491
492 /**
493 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 1

Calls 1

boundsCheckMethod · 0.95

Tested by 1