MemoryMappedViewAccessor: WriteArray

WriteArray

Writes structures of the type from an array passed into the accessor.



 Public Sub WriteArray(
	  ByVal Position As Long,
	  ByRef Arr As Variant,
	  ByVal Offset As Long,
	  ByVal Count As Long )

Parameters

Position
[ByVal] Long. The number of bytes into the accessor at which to begin writing.
Arr
[ByRef] Variant. The array to write into the accessor.
Offset
[ByVal] Long. The index in Arr to start writing from.
Count
[ByVal] Long. The number of structures in Arr to write.

Exceptions

Exception Condition
ArgumentExceptionThere are not enough bytes in the accessor after Position to write the number of structures specified by Count.
ArgumentOutOfRangeException Position is less than zero or greater than the capacity of the accessor.
-or-
Offset is less than the lower-bound of Arr.
-or-
Count is less than zero.
NotSupportedExceptionThe accessor does not support writing.

See Also

Project CorLib Overview

Class MemoryMappedViewAccessor Overview