public static boolean isDirect(Pointer ptr) { return ptr == null || ptr.isDirect(); }
public static boolean isDirect(Pointer ptr) { return ptr == null || ptr.isDirect(); }
public static boolean isDirect(Pointer ptr) { return ptr == null || ptr.isDirect(); }
public static PointerParameterStrategy pointerParameterStrategy(Pointer pointer) { if (pointer == null || pointer.isDirect()) { return PointerParameterStrategy.DIRECT; } else { return otherPointerParameterStrategy(pointer); } }
private StringArray(Runtime runtime, Pointer memory, int capacity) { super(runtime, memory.address(), memory.isDirect()); this.memory = memory; this.stringMemory = new ArrayList<Pointer>(capacity); }
public static PointerParameterStrategy pointerParameterStrategy(Pointer pointer) { if (pointer == null || pointer.isDirect()) { return PointerParameterStrategy.DIRECT; } else { return otherPointerParameterStrategy(pointer); } }
private StringArray(Runtime runtime, Pointer memory, int capacity) { super(runtime, memory.address(), memory.isDirect()); this.memory = memory; this.stringMemory = new ArrayList<Pointer>(capacity); }
private StringArray(Runtime runtime, Pointer memory, int capacity) { super(runtime, memory.address(), memory.isDirect()); this.memory = memory; this.stringMemory = new ArrayList<Pointer>(capacity); }
public static PointerParameterStrategy pointerParameterStrategy(Pointer pointer) { if (pointer == null || pointer.isDirect()) { return PointerParameterStrategy.DIRECT; } else { return otherPointerParameterStrategy(pointer); } }
final boolean isDirect() { return (enclosing != null && enclosing.__info.isDirect()) || (memory != null && memory.isDirect()); }
final boolean isDirect() { return (enclosing != null && enclosing.__info.isDirect()) || (memory != null && memory.isDirect()); }
final boolean isDirect() { return (enclosing != null && enclosing.__info.isDirect()) || (memory != null && memory.isDirect()); }
@Override public long[] toNative(Pointer[] pointers, ToNativeContext context) { if (pointers == null) { return null; } long[] primitive = new long[pointers.length]; if (ParameterFlags.isIn(parameterFlags)) { for (int i = 0; i < pointers.length; i++) { if (pointers[i] != null && !pointers[i].isDirect()) { throw new IllegalArgumentException("invalid pointer in array at index " + i); } primitive[i] = pointers[i] != null ? pointers[i].address() : 0L; } } return primitive; }
@Override public int[] toNative(Pointer[] pointers, ToNativeContext context) { if (pointers == null) { return null; } int[] primitive = new int[pointers.length]; if (ParameterFlags.isIn(parameterFlags)) { for (int i = 0; i < pointers.length; i++) { if (pointers[i] != null && !pointers[i].isDirect()) { throw new IllegalArgumentException("invalid pointer in array at index " + i); } primitive[i] = pointers[i] != null ? (int) pointers[i].address() : 0; } } return primitive; }
public ShareMemoryIO(Pointer parent, long offset) { super(parent.getRuntime(), parent.address() != 0L ? parent.address() + offset : 0L, parent.isDirect()); this.ptr = parent; this.base = offset; }
public BoundedMemoryIO(Pointer parent, long offset, long size) { super(parent.getRuntime(), parent.address() != 0L ? parent.address() + offset : 0L, parent.isDirect()); this.io = parent; this.base = offset; this.size = size; }
public ShareMemoryIO(Pointer parent, long offset) { super(parent.getRuntime(), parent.address() != 0L ? parent.address() + offset : 0L, parent.isDirect()); this.ptr = parent; this.base = offset; }
public ShareMemoryIO(Pointer parent, long offset) { super(parent.getRuntime(), parent.address() != 0L ? parent.address() + offset : 0L, parent.isDirect()); this.ptr = parent; this.base = offset; }
public BoundedMemoryIO(Pointer parent, long offset, long size) { super(parent.getRuntime(), parent.address() != 0L ? parent.address() + offset : 0L, parent.isDirect()); this.io = parent; this.base = offset; this.size = size; }
public BoundedMemoryIO(Pointer parent, long offset, long size) { super(parent.getRuntime(), parent.address() != 0L ? parent.address() + offset : 0L, parent.isDirect()); this.io = parent; this.base = offset; this.size = size; }