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

Method setNativeLong

src/com/sun/jna/Pointer.java:1057–1063  ·  view source on GitHub ↗

Set value at location being pointed to. This is equivalent to the expression ((long )((char )Pointer + offset)) = value . @param offset byte offset from pointer at which value must be set @param value long value to set

(long offset, NativeLong value)

Source from the content-addressed store, hash-verified

1055 * @param value <code>long</code> value to set
1056 */
1057 public void setNativeLong(long offset, NativeLong value) {
1058 if (NativeLong.SIZE == 8) {
1059 setLong(offset, value.longValue());
1060 } else {
1061 setInt(offset, value.intValue());
1062 }
1063 }
1064
1065 /**
1066 * Set <code>value</code> at location being pointed to. This is equivalent

Callers 2

testSetNativeLongMethod · 0.80
setValueMethod · 0.80

Calls 4

setLongMethod · 0.95
setIntMethod · 0.95
longValueMethod · 0.45
intValueMethod · 0.45

Tested by 1

testSetNativeLongMethod · 0.64