Represents a collection of memory utility functions that interact with the platform's native code directly. More...
Public Member Functions | |
abstract void | Clear (void *dest, int count) |
Writes the desired number zeroed bytes to the specified memory location. More... | |
abstract int | Compare (void *ptr1, void *ptr2, int count) |
Compares the first count bytes of these arrays. The comparison is done lexicographically. More... | |
abstract void | Copy (void *dest, void *src, int count) |
Copies count bytes from the object pointed to by src to the object pointed to by dest. More... | |
void | CopyArray< T > (T *source, int sourceIndex, T *destination, int destinationIndex, int count) |
Copies count bytes from the array pointed to by src to the array pointed to by dest. More... | |
void | CopyArrayWithStride (void *source, int sourceIndex, void *destination, int destinationIndex, int count, int stride) |
Copies count bytes from the array pointed to by src to the array pointed to by dest. More... | |
abstract void | Move (void *dest, void *src, int count) |
Copies count characters from the object pointed to by src to the object pointed to by dest. More... | |
abstract void | Set (void *dest, byte value, int count) |
Copies the value into each of the first count characters of the object pointed to by dest. More... | |
Static Public Member Functions | |
static void | ClearFast (void *dest, int count) |
static void | CopyFast (void *dest, void *src, int count) |
Represents a collection of memory utility functions that interact with the platform's native code directly.
|
pure virtual |
Copies count bytes from the object pointed to by src to the object pointed to by dest.
dest | Pointer to the memory location to copy to. |
src | Pointer to the memory location to copy from. |
count | Number of bytes to copy. |
Implemented in Quantum.QuantumUnityNativeUtility, Photon.Deterministic.Native.LIBCUtility, and Photon.Deterministic.Native.MSVCRTUtility.
|
pure virtual |
Writes the desired number zeroed bytes to the specified memory location.
dest | Pointer to the object to fill. |
count | Number of bytes to write. |
Implemented in Quantum.QuantumUnityNativeUtility, Photon.Deterministic.Native.LIBCUtility, and Photon.Deterministic.Native.MSVCRTUtility.
|
pure virtual |
Copies count characters from the object pointed to by src to the object pointed to by dest.
dest | Pointer to the memory location to copy to. |
src | Pointer to the memory location to copy from. |
count | Number of bytes to copy. |
Implemented in Quantum.QuantumUnityNativeUtility, Photon.Deterministic.Native.LIBCUtility, and Photon.Deterministic.Native.MSVCRTUtility.
|
pure virtual |
Copies the value into each of the first count characters of the object pointed to by dest.
dest | Pinter to the object to fill. |
value | The byte to write. |
count | Number of bytes to write. |
Implemented in Quantum.QuantumUnityNativeUtility, Photon.Deterministic.Native.LIBCUtility, and Photon.Deterministic.Native.MSVCRTUtility.
|
pure virtual |
Compares the first count bytes of these arrays. The comparison is done lexicographically.
ptr1 | Pointers to the left hand side memory buffers to compare. |
ptr2 | Pointers to the right hand side memory buffers to compare. |
count | Number of bytes to examine. |
Implemented in Quantum.QuantumUnityNativeUtility, Photon.Deterministic.Native.LIBCUtility, and Photon.Deterministic.Native.MSVCRTUtility.
|
inline |
Copies count bytes from the array pointed to by src to the array pointed to by dest.
Requires the stride of the copy which represents the size of the array type.
source | Pointer to the memory location to copy from. |
sourceIndex | The offset to the source as in number stride . |
destination | Pointer to the memory location to copy to. |
destinationIndex | The offset to the destination as in number of stride . |
count | Number of times to copy stride bytes. |
stride | The size of the type inside the array in bytes. |
|
inline |
Copies count bytes from the array pointed to by src to the array pointed to by dest.
T | The type of the array. |
source | Pointer to the memory location to copy from. |
sourceIndex | The source array offset. |
destination | Pointer to the memory location to copy to. |
destinationIndex | The destination array offset. |
count | The number of array elements to copy. |
T | : | unmanaged |