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

TouchSocketBitConverterGetBytes(Byte, Int16) 方法

将16位整数转换为指定字节序,并存储在指定的字节缓冲区中。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public void GetBytes(
	ref byte buffer,
	short value
)

参数

buffer  Byte
目标字节缓冲区。
value  Int16
要转换的16位整数。

参见