一款简单易用的基础网络通讯组件库。

TouchSocketBitConverterToUInt16 方法

转换为指定端模式的2字节转换为UInt16数据。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public ushort ToUInt16(
	byte[] buffer,
	int offset
)

参数

buffer  Byte

[缺少 "M:TouchSocket.Core.TouchSocketBitConverter.ToUInt16(System.Byte[],System.Int32)" 的 <param name="buffer"/> 文档]

offset  Int32

[缺少 "M:TouchSocket.Core.TouchSocketBitConverter.ToUInt16(System.Byte[],System.Int32)" 的 <param name="offset"/> 文档]

返回值

UInt16

[缺少 "M:TouchSocket.Core.TouchSocketBitConverter.ToUInt16(System.Byte[],System.Int32)" 的 <returns> 文档]

参见