MemoryMappedViewAccessor: ReadChar

ReadChar

Reads a character from the accessor.



 Public Function ReadChar(
	  ByVal Position As Long ) As Integer

Parameters

Position
[ByVal] Long. The number of bytes into the accessor at which to begin reading.

Return Values

Integer -  The value that was read.

Remarks

The ReadChar method does not attempt to apply any encoding. It will simply read two consecutive bytes as a character.

This method will return the same value as MemoryMappedViewAccessor.ReadInt16.

Exceptions

Exception Condition
ArgumentExceptionThere are not enough bytes after Position to read a value.
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