Interface FillFromElementKernel
- All Known Implementing Classes:
BooleanFillFromElementKernel,ByteFillFromElementKernel,CharFillFromElementKernel,DoubleFillFromElementKernel,FloatFillFromElementKernel,IntFillFromElementKernel,LongFillFromElementKernel,ObjectFillFromElementKernel,ShortFillFromElementKernel
public interface FillFromElementKernel
Fills a range of a chunk with one element of another chunk of the same type, without boxing the element.
-
Method Summary
Modifier and TypeMethodDescriptionvoidfillFromElement(WritableChunk<? extends Any> dest, int destOffset, int length, Chunk<? extends Any> src, int srcOffset) Set positions[destOffset, destOffset + length)ofdestto the element at positionsrcOffsetofsrc.static FillFromElementKernelmakeFillFromElementKernel(ChunkType chunkType)
-
Method Details
-
makeFillFromElementKernel
-
fillFromElement
void fillFromElement(WritableChunk<? extends Any> dest, int destOffset, int length, Chunk<? extends Any> src, int srcOffset) Set positions[destOffset, destOffset + length)ofdestto the element at positionsrcOffsetofsrc.- Parameters:
dest- the chunk to fill, whose capacity must cover the filled positionsdestOffset- the first position ofdestto filllength- the number of positions to fillsrc- the chunk holding the element, of the same type asdestsrcOffset- the position of the element insrc
-