Class ULongRawIndexer

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ULongRawIndexer
    extends ULongIndexer
    An indexer for a LongPointer using the Raw instance, treated as unsigned.
    • Field Detail

      • RAW

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

        protected LongPointer 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

      • ULongRawIndexer

        public ULongRawIndexer​(LongPointer pointer)
        Calls ULongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).
      • ULongRawIndexer

        public ULongRawIndexer​(LongPointer pointer,
                               long... sizes)
        Calls ULongRawIndexer(pointer, Index.create(sizes)).
      • ULongRawIndexer

        public ULongRawIndexer​(LongPointer pointer,
                               long[] sizes,
                               long[] strides)
        Calls ULongRawIndexer(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 ULongIndexer 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 java.math.BigInteger getRaw​(long i)
      • get

        public java.math.BigInteger get​(long i)
        Description copied from class: ULongIndexer
        Returns array/buffer[index(i)]
        Specified by:
        get in class ULongIndexer
      • get

        public ULongIndexer get​(long i,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where l[offset:offset + length] = array/buffer[index(i)]
        Specified by:
        get in class ULongIndexer
      • get

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

        public ULongIndexer get​(long i,
                                long j,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where l[offset:offset + length] = array/buffer[index(i, j)]
        Specified by:
        get in class ULongIndexer
      • get

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

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

        public ULongIndexer get​(long[] indices,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where l[offset:offset + length] = array/buffer[index(indices)]
        Specified by:
        get in class ULongIndexer
      • putRaw

        public ULongIndexer putRaw​(long i,
                                   java.math.BigInteger l)
      • put

        public ULongIndexer put​(long i,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i)] = l[offset:offset + length]
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                long j,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i, j)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                long j,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i, j)] = l[offset:offset + length]
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long i,
                                long j,
                                long k,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(i, j, k)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long[] indices,
                                java.math.BigInteger l)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(indices)] = l
        Specified by:
        put in class ULongIndexer
      • put

        public ULongIndexer put​(long[] indices,
                                java.math.BigInteger[] l,
                                int offset,
                                int length)
        Description copied from class: ULongIndexer
        Returns this where array/buffer[index(indices)] = l[offset:offset + length]
        Specified by:
        put in class ULongIndexer
      • 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