UnmanagedMemoryAccessor.ReadUInt16(Int64) UnmanagedMemoryAccessor.ReadUInt16(Int64) UnmanagedMemoryAccessor.ReadUInt16(Int64) UnmanagedMemoryAccessor.ReadUInt16(Int64) Method

Definition

Important

This API is not CLS-compliant.

CLS-compliant alternative
System.Int32

Reads an unsigned 16-bit integer from the accessor.

public:
 System::UInt16 ReadUInt16(long position);
[System.CLSCompliant(false)]
public ushort ReadUInt16 (long position);
member this.ReadUInt16 : int64 -> uint16
Public Function ReadUInt16 (position As Long) As UShort

Parameters

position
Int64 Int64 Int64 Int64

The number of bytes into the accessor at which to begin reading.

Returns

The value that was read.

Exceptions

There are not enough bytes after position to read a value.

position is less than zero or greater than the capacity of the accessor.

Applies to