UnmanagedMemoryAccessor.ReadInt16(Int64) メソッド

定義

アクセサーから 16 ビットの整数を読み取ります。Reads a 16-bit integer from the accessor.

public:
 short ReadInt16(long position);
public short ReadInt16 (long position);
member this.ReadInt16 : int64 -> int16
Public Function ReadInt16 (position As Long) As Short

パラメーター

position
Int64

アクセサーの読み取り開始位置 (バイト数)。The number of bytes into the accessor at which to begin reading.

戻り値

Int16

読み取られた値。The value that was read.

例外

値を読み取るための position の後のバイト数が不足しています。There are not enough bytes after position to read a value.

position が、0 未満か、アクセサーの容量を超えています。position is less than zero or greater than the capacity of the accessor.

アクセサーが読み取りをサポートしていません。The accessor does not support reading.

アクセサーは破棄されています。The accessor has been disposed.

適用対象