Class CharRawIndexer

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CharRawIndexer
    extends CharIndexer
    An indexer for a CharPointer using the Raw instance.
    • Field Detail

      • RAW

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

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

      • CharRawIndexer

        public CharRawIndexer​(CharPointer pointer)
        Calls CharRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).
      • CharRawIndexer

        public CharRawIndexer​(CharPointer pointer,
                              long... sizes)
        Calls CharRawIndexer(pointer, Index.create(sizes)).
      • CharRawIndexer

        public CharRawIndexer​(CharPointer pointer,
                              long[] sizes,
                              long[] strides)
        Calls CharRawIndexer(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 CharIndexer 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 char getRaw​(long i)
      • get

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

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

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

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

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

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

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

        public CharIndexer putRaw​(long i,
                                  char c)
      • put

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

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

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

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

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

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

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