Class MemCopy.MemCopyLong
java.lang.Object
net.imglib2.blocks.MemCopy.MemCopyLong
- All Implemented Interfaces:
MemCopy<long[]>
-
Nested Class Summary
Nested classes/interfaces inherited from interface MemCopy
MemCopy.MemCopyBoolean, MemCopy.MemCopyByte, MemCopy.MemCopyChar, MemCopy.MemCopyDouble, MemCopy.MemCopyFloat, MemCopy.MemCopyInt, MemCopy.MemCopyLong, MemCopy.MemCopyShort -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyForward(long[] src, int srcPos, long[] dest, int destPos, int length) Copylengthcomponents from thesrcarray to thedestarray.voidcopyLines(int lineDir, int lineLength, int numLines, long[] src, int srcPos, int srcStep, long[] dest, int destPos, int destStep) CopynumLinesstretches oflineLengthelements.voidcopyReverse(long[] src, int srcPos, long[] dest, int destPos, int length) Copylengthcomponents from thesrcarray to thedestarray, in reverse order.voidcopyStrided(long[] src, int srcPos, long[] dest, int destPos, int destStride, int length) TODO javadocvoidcopyValue(long[] src, int srcPos, long[] dest, int destPos, int length) Copy component at positionsrcPosin thesrcarray (lengthtimes) into positionsdestPosthroughdestPos+length-1of the destination array.
-
Constructor Details
-
MemCopyLong
public MemCopyLong()
-
-
Method Details
-
copyForward
public void copyForward(long[] src, int srcPos, long[] dest, int destPos, int length) Description copied from interface:MemCopyCopylengthcomponents from thesrcarray to thedestarray. The components at positionssrcPosthroughsrcPos+length-1in the source array are copied into positionsdestPosthroughdestPos+length-1, respectively, of the destination array.- Specified by:
copyForwardin interfaceMemCopy<long[]>
-
copyReverse
public void copyReverse(long[] src, int srcPos, long[] dest, int destPos, int length) Description copied from interface:MemCopyCopylengthcomponents from thesrcarray to thedestarray, in reverse order. The components at positionssrcPosthroughsrcPos-length-1in the source array are copied into positionsdestPosthroughdestPos+length-1, respectively, of the destination array.- Specified by:
copyReversein interfaceMemCopy<long[]>
-
copyValue
public void copyValue(long[] src, int srcPos, long[] dest, int destPos, int length) Description copied from interface:MemCopyCopy component at positionsrcPosin thesrcarray (lengthtimes) into positionsdestPosthroughdestPos+length-1of the destination array. -
copyStrided
public void copyStrided(long[] src, int srcPos, long[] dest, int destPos, int destStride, int length) Description copied from interface:MemCopyTODO javadoc- Specified by:
copyStridedin interfaceMemCopy<long[]>
-
copyLines
public void copyLines(int lineDir, int lineLength, int numLines, long[] src, int srcPos, int srcStep, long[] dest, int destPos, int destStep) Description copied from interface:MemCopyCopynumLinesstretches oflineLengthelements.- Specified by:
copyLinesin interfaceMemCopy<long[]>- Parameters:
lineDir-1,-1, or0. 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 linenumLines- how many lines to copysrc- source arraysrcPos- starting position in source arraysrcStep- offset to next line in srcdest- dest arraydestPos- starting position in dest arraydestStep- offset to next line in dest
-