Class UIntRawIndexer

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class UIntRawIndexer
    extends UIntIndexer
    An indexer for a IntPointer using the Raw instance, treated as unsigned.
    • Field Detail

      • RAW

        protected static final Raw RAW
        The instance for the raw memory interface.
      • pointer

        protected IntPointer pointer
        The backing pointer.
      • base

        final long base
        Base address and number of elements accessible.
      • size

        final long size
        Base address and number of elements accessible.
    • Constructor Detail

      • UIntRawIndexer

        public UIntRawIndexer​(IntPointer pointer)
        Calls UIntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).
      • UIntRawIndexer

        public UIntRawIndexer​(IntPointer pointer,
                              long... sizes)
        Calls UIntRawIndexer(pointer, Index.create(sizes)).
      • UIntRawIndexer

        public UIntRawIndexer​(IntPointer pointer,
                              long[] sizes,
                              long[] strides)
        Calls UIntRawIndexer(pointer, Index.create(sizes, strides)).
    • Method Detail

      • pointer

        public Pointer pointer()
        Description copied from class: Indexer
        Returns the backing pointer, or null if none
        Overrides:
        pointer in class Indexer
      • reindex

        public UIntIndexer reindex​(Index index)
        Description copied from class: Indexer
        Returns a new Indexer using the same data, but with a different Index.
        Specified by:
        reindex in class Indexer
      • getRaw

        public long getRaw​(long i)
      • get

        public long get​(long i)
        Description copied from class: UIntIndexer
        Returns array/buffer[index(i)]
        Specified by:
        get in class UIntIndexer
      • get

        public UIntIndexer get​(long i,
                               long[] m,
                               int offset,
                               int length)
        Description copied from class: UIntIndexer
        Returns this where n[offset:offset + length] = array/buffer[index(i)]
        Specified by:
        get in class UIntIndexer
      • get

        public long get​(long i,
                        long j)
        Description copied from class: UIntIndexer
        Returns array/buffer[index(i, j)]
        Specified by:
        get in class UIntIndexer
      • get

        public UIntIndexer get​(long i,
                               long j,
                               long[] m,
                               int offset,
                               int length)
        Description copied from class: UIntIndexer
        Returns this where n[offset:offset + length] = array/buffer[index(i, j)]
        Specified by:
        get in class UIntIndexer
      • get

        public long get​(long i,
                        long j,
                        long k)
        Description copied from class: UIntIndexer
        Returns array/buffer[index(i, j, k)]
        Specified by:
        get in class UIntIndexer
      • get

        public long get​(long... indices)
        Description copied from class: UIntIndexer
        Returns array/buffer[index(indices)]
        Specified by:
        get in class UIntIndexer
      • get

        public UIntIndexer get​(long[] indices,
                               long[] m,
                               int offset,
                               int length)
        Description copied from class: UIntIndexer
        Returns this where n[offset:offset + length] = array/buffer[index(indices)]
        Specified by:
        get in class UIntIndexer
      • putRaw

        public UIntIndexer putRaw​(long i,
                                  long n)
      • put

        public UIntIndexer put​(long i,
                               long n)
        Description copied from class: UIntIndexer
        Returns this where array/buffer[index(i)] = n
        Specified by:
        put in class UIntIndexer
      • put

        public UIntIndexer put​(long i,
                               long[] m,
                               int offset,
                               int length)
        Description copied from class: UIntIndexer
        Returns this where array/buffer[index(i)] = n[offset:offset + length]
        Specified by:
        put in class UIntIndexer
      • put

        public UIntIndexer put​(long i,
                               long j,
                               long n)
        Description copied from class: UIntIndexer
        Returns this where array/buffer[index(i, j)] = n
        Specified by:
        put in class UIntIndexer
      • put

        public UIntIndexer put​(long i,
                               long j,
                               long[] m,
                               int offset,
                               int length)
        Description copied from class: UIntIndexer
        Returns this where array/buffer[index(i, j)] = n[offset:offset + length]
        Specified by:
        put in class UIntIndexer
      • put

        public UIntIndexer put​(long i,
                               long j,
                               long k,
                               long n)
        Description copied from class: UIntIndexer
        Returns this where array/buffer[index(i, j, k)] = n
        Specified by:
        put in class UIntIndexer
      • put

        public UIntIndexer put​(long[] indices,
                               long n)
        Description copied from class: UIntIndexer
        Returns this where array/buffer[index(indices)] = n
        Specified by:
        put in class UIntIndexer
      • put

        public UIntIndexer put​(long[] indices,
                               long[] m,
                               int offset,
                               int length)
        Description copied from class: UIntIndexer
        Returns this where array/buffer[index(indices)] = n[offset:offset + length]
        Specified by:
        put in class UIntIndexer
      • release

        public void release()
        Description copied from class: Indexer
        Makes sure changes are reflected onto the backing memory and clears any references.
        Specified by:
        release in class Indexer