18 using byte =
unsigned char;
51 if (srcOffset + count > src.
GetLength() *
sizeof(T))
53 if (dstOffset + count > dst.
GetLength() *
sizeof(T))
57 for (
int i = 0; i < count; ++i) {
58 *((
char*)dst.
GetData() + dstOffset + i) = *((
char*)src.
GetData() + srcOffset + i);
84 return *((
byte*)array.
GetData() + index);
97 *((
byte*)array.
GetData() + index) = value;
Defines the exception thrown when an invalid argument is provided to a method.
Defines the exception thrown when a null reference is passed to a method that does not accept it.
Defines the exception thrown when an argument value is outside the acceptable range of values.
Provides methods for creating, manipulating, searching, and sorting arrays.
Represents a Unicode character code point mirroring .NET System.Char.
Defines common cross-platform macros, export decorators, and fundamental types.
Base object class for DotNetDupe mirroring .NET System.Object.
ArgumentException(const String &sMessage)
Initializes a new instance of the ArgumentException class with a specified error message.
ArgumentNullException(const String &sMessage)
Initializes a new instance of the ArgumentNullException class with a specified error message.
ArgumentOutOfRangeException(const String &sMessage)
Initializes a new instance of the ArgumentOutOfRangeException class with a specified error message.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
int GetLength() const
Gets the total number of elements in all dimensions of the Array.
T * GetData()
Gets a pointer to the contiguous internal element buffer.
bool IsNull() const
Checks whether the array has zero length.
Manipulates arrays of primitive types efficiently at the byte level.
static void SetByte(Array< T > &array, int index, byte value)
Assigns a specified value to a byte at a particular location in a specified array.
static void BlockCopy(Array< T > &src, int srcOffset, Array< T > &dst, int dstOffset, int count)
Copies a specified number of bytes from a source array starting at a particular offset to a destinati...
static byte GetByte(Array< T > &array, int index)
Retrieves the byte at a specified location in a specified array.
static int ByteLength(Array< T > &array)
Returns the number of bytes in the specified array.
Supports all classes in the DotNetDupe class hierarchy.