Interface CopyRangeFromToJavaArray
-
- All Known Subinterfaces:
ContiguousMemoryInterface
- All Known Implementing Classes:
FileMappedMemoryRegion,MappedMemoryBase,MemoryBase,OffHeapMemory,SafeContiguousMemory
public interface CopyRangeFromToJavaArrayMemory objects implementing this interface can copy their contents to and from Java primitive arrays.- Author:
- royer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopyFrom(byte[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a byte array to this memory object.voidcopyFrom(char[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a char array to this memory object.voidcopyFrom(double[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a double array to this memory object.voidcopyFrom(float[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a float array to this memory object.voidcopyFrom(int[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a int array to this memory object.voidcopyFrom(long[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a long array to this memory object.voidcopyFrom(short[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a short array to this memory object.voidcopyTo(byte[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a byte array.voidcopyTo(char[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a char array.voidcopyTo(double[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a double array.voidcopyTo(float[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a float array.voidcopyTo(int[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a int array.voidcopyTo(long[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a long array.voidcopyTo(short[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a short array.
-
-
-
Method Detail
-
copyTo
void copyTo(byte[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a byte array.- Parameters:
pTo- preallocated byte array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyTo
void copyTo(short[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a short array.- Parameters:
pTo- preallocated short array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyTo
void copyTo(char[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a char array.- Parameters:
pTo- preallocated char array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyTo
void copyTo(int[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a int array.- Parameters:
pTo- preallocated int array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyTo
void copyTo(long[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a long array.- Parameters:
pTo- preallocated long array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyTo
void copyTo(float[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a float array.- Parameters:
pTo- preallocated float array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyTo
void copyTo(double[] pTo, long pSrcOffset, int pDstOffset, int pLength)Copies the content of that memory object to a double array.- Parameters:
pTo- preallocated double array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyFrom
void copyFrom(byte[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a byte array to this memory object.- Parameters:
pFrom- preallocated byte array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyFrom
void copyFrom(short[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a short array to this memory object.- Parameters:
pFrom- preallocated short array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyFrom
void copyFrom(char[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a char array to this memory object.- Parameters:
pFrom- preallocated char array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyFrom
void copyFrom(int[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a int array to this memory object.- Parameters:
pFrom- preallocated int array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyFrom
void copyFrom(long[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a long array to this memory object.- Parameters:
pFrom- preallocated long array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyFrom
void copyFrom(float[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a float array to this memory object.- Parameters:
pFrom- preallocated float array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
copyFrom
void copyFrom(double[] pFrom, int pSrcOffset, long pDstOffset, int pLength)Copies the content of a double array to this memory object.- Parameters:
pFrom- preallocated double array.pSrcOffset- source offset (array elements)pDstOffset- destination offset (array elements)pLength- length in array elements
-
-