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

Method share

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

Provide a view of this memory using the given offset as the base address. The returned Pointer will have a size equal to that of the original minus the offset. @throws IndexOutOfBoundsException if the requested memory is outside the allocated bounds.

(long offset)

Source from the content-addressed store, hash-verified

134 * the allocated bounds.
135 */
136 @Override
137 public Pointer share(long offset) {
138 return share(offset, size() - offset);
139 }
140
141 /** Provide a view of this memory using the given offset as the base
142 * address, bounds-limited with the given size. Maintains a reference to

Callers 15

testEvtGetQueryInfoMethod · 0.95
testPerfDataBLockMethod · 0.95
testIFsMethod · 0.95
setValueMethod · 0.95
testAutoFreeMemoryMethod · 0.95
testShareMemoryMethod · 0.95
testAlignmentMethod · 0.95
testGetSharedMemoryMethod · 0.95
alignMethod · 0.95

Calls 2

sizeMethod · 0.95
boundsCheckMethod · 0.95

Tested by 14

testEvtGetQueryInfoMethod · 0.76
testPerfDataBLockMethod · 0.76
testIFsMethod · 0.76
testAutoFreeMemoryMethod · 0.76
testShareMemoryMethod · 0.76
testAlignmentMethod · 0.76
testGetSharedMemoryMethod · 0.76
useMemoryMethod · 0.36
testStructureFieldMethod · 0.36