Package net.imglib2.blocks
Class MemCopy.MemCopyChar
- java.lang.Object
-
- net.imglib2.blocks.MemCopy.MemCopyChar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.imglib2.blocks.MemCopy
MemCopy.MemCopyBoolean, MemCopy.MemCopyByte, MemCopy.MemCopyChar, MemCopy.MemCopyDouble, MemCopy.MemCopyFloat, MemCopy.MemCopyInt, MemCopy.MemCopyLong, MemCopy.MemCopyShort
-
-
Constructor Summary
Constructors Constructor Description MemCopyChar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyForward(char[] src, int srcPos, char[] dest, int destPos, int length)Copylengthcomponents from thesrcarray to thedestarray.voidcopyLines(int lineDir, int lineLength, int numLines, char[] src, int srcPos, int srcStep, char[] dest, int destPos, int destStep)CopynumLinesstretches oflineLengthelements.voidcopyReverse(char[] src, int srcPos, char[] dest, int destPos, int length)Copylengthcomponents from thesrcarray to thedestarray, in reverse order.voidcopyStrided(char[] src, int srcPos, char[] dest, int destPos, int destStride, int length)TODO javadocvoidcopyValue(char[] src, int srcPos, char[] dest, int destPos, int length)Copy component at positionsrcPosin thesrcarray (lengthtimes) into positionsdestPosthroughdestPos+length-1of the destination array.
-
-
-
Method Detail
-
copyForward
public void copyForward(char[] src, int srcPos, char[] 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<char[]>
-
copyReverse
public void copyReverse(char[] src, int srcPos, char[] 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<char[]>
-
copyValue
public void copyValue(char[] src, int srcPos, char[] 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(char[] src, int srcPos, char[] dest, int destPos, int destStride, int length)Description copied from interface:MemCopyTODO javadoc- Specified by:
copyStridedin interfaceMemCopy<char[]>
-
copyLines
public void copyLines(int lineDir, int lineLength, int numLines, char[] src, int srcPos, int srcStep, char[] dest, int destPos, int destStep)Description copied from interface:MemCopyCopynumLinesstretches oflineLengthelements.- Specified by:
copyLinesin interfaceMemCopy<char[]>- 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
-
-