Interface CopyFromToJavaArray
-
- All Known Subinterfaces:
ContiguousMemoryInterface
- All Known Implementing Classes:
FileMappedMemoryRegion,MappedMemoryBase,MemoryBase,OffHeapMemory,SafeContiguousMemory
public interface CopyFromToJavaArrayMemory 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)Copies the content of a byte array to this memory object.voidcopyFrom(char[] pFrom)Copies the content of a char array to this memory object.voidcopyFrom(double[] pFrom)Copies the content of a double array to this memory object.voidcopyFrom(float[] pFrom)Copies the content of a float array to this memory object.voidcopyFrom(int[] pFrom)Copies the content of a int array to this memory object.voidcopyFrom(long[] pFrom)Copies the content of a long array to this memory object.voidcopyFrom(short[] pFrom)Copies the content of a short array to this memory object.voidcopyTo(byte[] pTo)Copies the content of that memory object to a byte array.voidcopyTo(char[] pTo)Copies the content of that memory object to a char array.voidcopyTo(double[] pTo)Copies the content of that memory object to a double array.voidcopyTo(float[] pTo)Copies the content of that memory object to a float array.voidcopyTo(int[] pTo)Copies the content of that memory object to a int array.voidcopyTo(long[] pTo)Copies the content of that memory object to a long array.voidcopyTo(short[] pTo)Copies the content of that memory object to a short array.
-
-
-
Method Detail
-
copyTo
void copyTo(byte[] pTo)
Copies the content of that memory object to a byte array.- Parameters:
pTo- preallocated byte array.
-
copyTo
void copyTo(short[] pTo)
Copies the content of that memory object to a short array.- Parameters:
pTo- preallocated short array.
-
copyTo
void copyTo(char[] pTo)
Copies the content of that memory object to a char array.- Parameters:
pTo- preallocated char array.
-
copyTo
void copyTo(int[] pTo)
Copies the content of that memory object to a int array.- Parameters:
pTo- preallocated int array.
-
copyTo
void copyTo(long[] pTo)
Copies the content of that memory object to a long array.- Parameters:
pTo- preallocated long array.
-
copyTo
void copyTo(float[] pTo)
Copies the content of that memory object to a float array.- Parameters:
pTo- preallocated float array.
-
copyTo
void copyTo(double[] pTo)
Copies the content of that memory object to a double array.- Parameters:
pTo- preallocated double array.
-
copyFrom
void copyFrom(byte[] pFrom)
Copies the content of a byte array to this memory object.- Parameters:
pFrom- preallocated byte array.
-
copyFrom
void copyFrom(short[] pFrom)
Copies the content of a short array to this memory object.- Parameters:
pFrom- preallocated short array.
-
copyFrom
void copyFrom(char[] pFrom)
Copies the content of a char array to this memory object.- Parameters:
pFrom- preallocated char array.
-
copyFrom
void copyFrom(int[] pFrom)
Copies the content of a int array to this memory object.- Parameters:
pFrom- preallocated int array.
-
copyFrom
void copyFrom(long[] pFrom)
Copies the content of a long array to this memory object.- Parameters:
pFrom- preallocated long array.
-
copyFrom
void copyFrom(float[] pFrom)
Copies the content of a float array to this memory object.- Parameters:
pFrom- preallocated float array.
-
copyFrom
void copyFrom(double[] pFrom)
Copies the content of a double array to this memory object.- Parameters:
pFrom- preallocated double array.
-
-