MemoryMappedViewAccessor: ReadChar |
Reads a character from the accessor.
Public Function ReadChar( ByVal Position As Long ) As Integer
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.
Exception | Condition |
---|---|
ArgumentException | There are not enough bytes after Position to read a value. |
ArgumentOutOfRangeException | Position is less than zero or greater than the capacity of the accessor. |
NotSupportedException | The accessor does not support reading. |