MemoryMappedViewAccessor: Read

Read

Reads a structure of the type passed in from the accessor into a provided reference.



 Public Sub Read(
	  ByVal Position As Long,
	  ByRef Structure As Variant )

Parameters

Position
[ByVal] Long. The number of bytes into the accessor at which to begin reading.
Structure
[ByRef] Variant. The structure to contain the read data.

Exceptions

Exception Condition
ArgumentException There are not enough bytes after Position to read a value.
-or-
Structure is not a user-defined or primitive type.
ArgumentOutOfRangeExceptionPosition is less than zero or greater than the capacity of the accessor.
NotSupportedExceptionThe accessor does not support reading.

See Also

Project CorLib Overview

Class MemoryMappedViewAccessor Overview