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 ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MemCopy.MemCopyBooleanstatic final MemCopy.MemCopyBytestatic final MemCopy.MemCopyCharstatic final MemCopy.MemCopyDoublestatic final MemCopy.MemCopyFloatstatic final MemCopy.MemCopyIntstatic final MemCopy.MemCopyLongstatic final MemCopy.MemCopyShort -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyForward(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 javadocvoidCopy component at positionsrcPosin thesrcarray (lengthtimes) into positionsdestPosthroughdestPos+length-1of the destination array.static MemCopy<?> forPrimitiveType(PrimitiveType primitiveType)
-
Field Details
-
BOOLEAN
-
BYTE
-
CHAR
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
-
Method Details
-
copyForward
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
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
-
copyStrided
-
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
-