System::Runtime::InteropServices::Marshal::ReadInt16 方法

Marshal::ReadInt16 method

从内存读取短整数。

static int16_t System::Runtime::InteropServices::Marshal::ReadInt16(IntPtr ptr, int offset=0)
参数类型描述
ptrIntPtr内存缓冲区。
offsetint内存缓冲区的偏移。

ReturnValue

读取值。

另见