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

Method getShort

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

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

(long offset)

Source from the content-addressed store, hash-verified

498 * @see Pointer#getShort(long)
499 */
500 @Override
501 public short getShort(long offset) {
502 boundsCheck(offset, 2);
503 return super.getShort(offset);
504 }
505
506 /**
507 * Indirect the native pointer to <code>malloc</code> space, a la

Callers 11

getElementMethod · 0.95
BindToCsidlMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45
getValueMethod · 0.45
toPrimitiveArrayMethod · 0.45
ELFSectionHeadersMethod · 0.45
getValueMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by 1

BindToCsidlMethod · 0.36