/** @see Pointer#position(long) */ @Override public CharPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public BooleanPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public ShortPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public SizeTPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public FloatPointer position(long position) { return super.position(position); } /** @see Pointer#position(long) */
/** @see Pointer#position(long) */ @Override public BoolPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public PointerPointer<P> position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public BytePointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public IntPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public LongPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public DoublePointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
/** @see Pointer#position(long) */ @Override public CLongPointer position(long position) { return super.position(position); } /** @see Pointer#limit(long) */
public LongPointerWrapper(Pointer pointer) { this.address = pointer.address(); this.capacity = pointer.capacity(); this.limit = pointer.limit(); this.position = pointer.position(); } }
/** * Returns a ByteBuffer covering the memory space from this.position to this.limit. * If limit == 0, it uses position + 1 instead. The way the methods were designed * allows constructs such as {@code this.position(13).limit(42).asByteBuffer()}. * * @return the direct NIO {@link ByteBuffer} created */ public ByteBuffer asByteBuffer() { if (isNull()) { return null; } if (limit > 0 && limit < position) { throw new IllegalArgumentException("limit < position: (" + limit + " < " + position + ")"); } int size = sizeof(); Pointer p = new Pointer(); p.address = address; return p.position(size * position) .capacity(size * (limit <= 0 ? position + 1 : limit)) .asDirectBuffer().order(ByteOrder.nativeOrder()); } /**
@Override public float3 position(long position) { return (float3)super.position(position); } public native float x(); public native float3 x(float x);
@Override public SLIST_HEADER position(long position) { return (SLIST_HEADER)super.position(position); } // original struct
@Override public OBJECTID position(long position) { return (OBJECTID)super.position(position); } // size is 20
public CudaPointer(Pointer pointer) { this.address = pointer.address(); this.capacity = pointer.capacity(); this.limit = pointer.limit(); this.position = pointer.position(); }
public CudaPointer(Pointer pointer) { this.address = pointer.address(); this.capacity = pointer.capacity(); this.limit = pointer.limit(); this.position = pointer.position(); }
public LongPointerWrapper(Pointer pointer) { this.address = pointer.address(); this.capacity = pointer.capacity(); this.limit = pointer.limit(); this.position = pointer.position(); } }