Interface MemCopy<T>

    • Method Detail

      • copyForward

        void copyForward​(T src,
                         int srcPos,
                         T dest,
                         int destPos,
                         int length)
        Copy length components from the src array to the dest array. The components at positions srcPos through srcPos+length-1 in the source array are copied into positions destPos through destPos+length-1, respectively, of the destination array.
      • copyReverse

        void copyReverse​(T src,
                         int srcPos,
                         T dest,
                         int destPos,
                         int length)
        Copy length components from the src array to the dest array, in reverse order. The components at positions srcPos through srcPos-length-1 in the source array are copied into positions destPos through destPos+length-1, respectively, of the destination array.
      • copyValue

        void copyValue​(T src,
                       int srcPos,
                       T dest,
                       int destPos,
                       int length)
        Copy component at position srcPos in the src array (length times) into positions destPos through destPos+length-1 of the destination array.
      • copyStrided

        void copyStrided​(T src,
                         int srcPos,
                         T dest,
                         int destPos,
                         int destStride,
                         int length)
        TODO javadoc
      • copyLines

        default void copyLines​(int lineDir,
                               int lineLength,
                               int numLines,
                               T src,
                               int srcPos,
                               int srcStep,
                               T dest,
                               int destPos,
                               int destStep)
        Copy numLines stretches of lineLength elements.
        Parameters:
        lineDir - 1, -1, or 0. This corresponds (for every line being copied) to the source position moving forward, backward, or not at all, as the dest position is moving forward.
        lineLength - how many elements to copy per line
        numLines - how many lines to copy
        src - source array
        srcPos - starting position in source array
        srcStep - offset to next line in src
        dest - dest array
        destPos - starting position in dest array
        destStep - offset to next line in dest