Package net.imglib2.blocks
Interface MemCopy<T>
-
- All Known Implementing Classes:
MemCopy.MemCopyBoolean,MemCopy.MemCopyByte,MemCopy.MemCopyChar,MemCopy.MemCopyDouble,MemCopy.MemCopyFloat,MemCopy.MemCopyInt,MemCopy.MemCopyLong,MemCopy.MemCopyShort
interface MemCopy<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMemCopy.MemCopyBooleanstatic classMemCopy.MemCopyBytestatic classMemCopy.MemCopyCharstatic classMemCopy.MemCopyDoublestatic classMemCopy.MemCopyFloatstatic classMemCopy.MemCopyIntstatic classMemCopy.MemCopyLongstatic classMemCopy.MemCopyShort
-
Field Summary
Fields Modifier and Type Field Description static MemCopy.MemCopyBooleanBOOLEANstatic MemCopy.MemCopyByteBYTEstatic MemCopy.MemCopyCharCHARstatic MemCopy.MemCopyDoubleDOUBLEstatic MemCopy.MemCopyFloatFLOATstatic MemCopy.MemCopyIntINTstatic MemCopy.MemCopyLongLONGstatic MemCopy.MemCopyShortSHORT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcopyForward(T src, int srcPos, T dest, int destPos, int length)Copylengthcomponents from thesrcarray to thedestarray.default voidcopyLines(int lineDir, int lineLength, int numLines, T src, int srcPos, int srcStep, T dest, int destPos, int destStep)CopynumLinesstretches oflineLengthelements.voidcopyReverse(T src, int srcPos, T dest, int destPos, int length)Copylengthcomponents from thesrcarray to thedestarray, in reverse order.voidcopyStrided(T src, int srcPos, T dest, int destPos, int destStride, int length)TODO javadocvoidcopyValue(T src, int srcPos, T dest, int destPos, int length)Copy component at positionsrcPosin thesrcarray (lengthtimes) into positionsdestPosthroughdestPos+length-1of the destination array.static MemCopy<?>forPrimitiveType(PrimitiveType primitiveType)
-
-
-
Field Detail
-
BOOLEAN
static final MemCopy.MemCopyBoolean BOOLEAN
-
BYTE
static final MemCopy.MemCopyByte BYTE
-
CHAR
static final MemCopy.MemCopyChar CHAR
-
SHORT
static final MemCopy.MemCopyShort SHORT
-
INT
static final MemCopy.MemCopyInt INT
-
LONG
static final MemCopy.MemCopyLong LONG
-
FLOAT
static final MemCopy.MemCopyFloat FLOAT
-
DOUBLE
static final MemCopy.MemCopyDouble DOUBLE
-
-
Method Detail
-
copyForward
void copyForward(T src, int srcPos, T dest, int destPos, int length)
Copylengthcomponents from thesrcarray to thedestarray. The components at positionssrcPosthroughsrcPos+length-1in the source array are copied into positionsdestPosthroughdestPos+length-1, respectively, of the destination array.
-
copyReverse
void copyReverse(T src, int srcPos, T dest, int destPos, int length)
Copylengthcomponents 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.
-
copyValue
void copyValue(T src, int srcPos, T dest, int destPos, int length)
Copy component at positionsrcPosin thesrcarray (lengthtimes) into positionsdestPosthroughdestPos+length-1of 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)CopynumLinesstretches oflineLengthelements.- 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
-
forPrimitiveType
static MemCopy<?> forPrimitiveType(PrimitiveType primitiveType)
-
-