Class Ptr<S extends NativeObject,​T extends Ptr<S,​T>>

All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
BooleanPtr.BooleanPtrPtr, BytePtr.BytePtrPtr, CharPtr.CharPtrPtr, DoublePtr.DoublePtrPtr, FloatPtr.FloatPtrPtr, FunctionPtr.FunctionPtrPtr, IntPtr.IntPtrPtr, LongPtr.LongPtrPtr, MachineSizedFloatPtr.MachineSizedFloatPtrPtr, MachineSizedSIntPtr.MachineSizedSIntPtrPtr, MachineSizedUIntPtr.MachineSizedUIntPtrPtr, ShortPtr.ShortPtrPtr, VoidPtr.VoidPtrPtr

public abstract class Ptr<S extends NativeObject,​T extends Ptr<S,​T>>
extends Struct<T>
Generic pointer to pointer (<type> ** in C).
  • Constructor Details

    • Ptr

      public Ptr()
    • Ptr

      public Ptr​(T o)
  • Method Details

    • get

      public S get()
    • set

      public T set​(S o)
    • set

      public T set​(long handle)
    • set

      public void set​(S[] src)
      Copies src.length objects from src to the memory pointed to by this Ptr.
      Parameters:
      src - the source.
    • set

      public void set​(S[] src, int offset, int count)
      Copies count objects from src starting at offset offset to the memory pointed to by this Ptr.
      Parameters:
      src - the source.
      offset - the offset within the source array to start copying from.
      count - the number of elements to copy.