Quantum 3
3.1.0
Represents a collection of memory utility functions that interact with the platform's native code directly. More...
Public Member Functions | |
| void | Clear (void *dest, int count) |
| Writes the desired number zeroed bytes to the specified memory location. More... | |
| int | Compare (void *ptr1, void *ptr2, int count) |
| Compares the first count bytes of these arrays. The comparison is done lexicographically. More... | |
| 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 | Copy< T > (T *dest, T *src) |
| Copies value from the object pointed to by src to the object pointed to by dest. More... | |
| 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... | |
| T | Replace< T > (T *x, T value) |
Replaces the value at x with value and returns the replaced value. More... | |
| 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... | |
| void | Swap (void *a, void *b, int count) |
| Swaps count bytes between two locations in memory. More... | |
| void | Swap< T > (T *a, T *b) |
| Swaps values between two locations in memory. More... | |
Represents a collection of memory utility functions that interact with the platform's native code directly.
| void Photon.Deterministic.Native.Utility.Copy | ( | void * | dest, |
| void * | src, | ||
| int | count | ||
| ) |
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. |
| void Photon.Deterministic.Native.Utility.Clear | ( | void * | dest, |
| int | count | ||
| ) |
Writes the desired number zeroed bytes to the specified memory location.
| dest | Pointer to the object to fill. |
| count | Number of bytes to write. |
| void Photon.Deterministic.Native.Utility.Move | ( | void * | dest, |
| void * | src, | ||
| int | count | ||
| ) |
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. |
| void Photon.Deterministic.Native.Utility.Set | ( | void * | dest, |
| byte | value, | ||
| int | count | ||
| ) |
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. |
| int Photon.Deterministic.Native.Utility.Compare | ( | void * | ptr1, |
| void * | ptr2, | ||
| int | count | ||
| ) |
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. |
| void Photon.Deterministic.Native.Utility.Copy< T > | ( | T * | dest, |
| T * | src | ||
| ) |
Copies value 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. |
| T | : | unmanaged | |
| T | : | QuantumUnsafe.Copy | |
| T | : | dest | |
| T | : | src | |
| T | : | sizeof | |
| T | : | T |
| void Photon.Deterministic.Native.Utility.Swap | ( | void * | a, |
| void * | b, | ||
| int | count | ||
| ) |
Swaps count bytes between two locations in memory.
| a | Pointer to the first location in memory. |
| b | Pointer to the second location in memory. |
| count | The number of bytes to swap. |
| void Photon.Deterministic.Native.Utility.Swap< T > | ( | T * | a, |
| T * | b | ||
| ) |
Swaps values between two locations in memory.
| a | Pointer to the first location in memory. |
| b | Pointer to the second location in memory. |
| T | : | unmanaged | |
| T | : | QuantumUnsafe.Swap | |
| T | : | a | |
| T | : | b |
| T Photon.Deterministic.Native.Utility.Replace< T > | ( | T * | x, |
| T | value | ||
| ) |
Replaces the value at x with value and returns the replaced value.
| x | Pointer to an existing value. |
| value | The new value to write. |
x.| T | : | unmanaged | |
| T | : | QuantumUnsafe.Replace | |
| T | : | x | |
| T | : | value |