UnmanagedMemoryAccessor.ReadArray<T> Method (Int64, T, Int32, Int32)
Reads structures of type T from the accessor into an array of type T.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] public int ReadArray<T>( long position, T array, int offset, int count ) where T : struct
The number of bytes in the accessor at which to begin reading.
The array to contain the structures read from the accessor.
The index in array in which to place the first copied structure.
The number of structures of type T to read from the accessor.
Return ValueType: System.Int32
The number of structures read into array. This value can be less than count if there are fewer structures available, or zero if the end of the accessor is reached.
The type of structure.
array is not large enough to contain count of structures (starting from position).
array is null.
position is less than zero or greater than the capacity of the accessor.
The accessor does not support reading.
The accessor has been disposed.
This method is not safe.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 4.0