SafeBuffer::ReadArray<T> Method (UInt64, array<T>^, Int32, Int32)
Reads the specified number of value types from memory starting at the offset, and writes them into an array starting at the index.
This API is not CLS-compliant.
Assembly: mscorlib (in mscorlib.dll)
public: generic<typename T> where T : value struct, gcnew() [CLSCompliantAttribute(false)] void ReadArray( unsigned long long byteOffset, array<T>^ array, int index, int count )
Parameters
- byteOffset
-
Type:
System::UInt64
The location from which to start reading.
- array
-
Type:
array<T>^
The output array to write to.
- index
-
Type:
System::Int32
The location in the output array to begin writing to.
- count
-
Type:
System::Int32
The number of value types to read from the input array and to write to the output array.
Type Parameters
- T
The value type to read.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero. -or- count is less than zero. |
| ArgumentNullException | array is null. |
| ArgumentException | The length of the array minus the index is less than count. |
| InvalidOperationException | The Initialize method has not been called. |
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1