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

PackageFastBinaryConverterTPackageIFastBinaryConverterWrite 方法

将TPackage类型的对象写入字节块中。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
void IFastBinaryConverter.Write<TByteBlock>(
	ref TByteBlock byteBlock,
	 in Object obj
)
where TByteBlock : IBytesWriter

参数

byteBlock  TByteBlock
字节块的引用。
obj  Object
要写入的对象。

类型参数

TByteBlock
实现了IByteBlock接口的字节块类型。

实现

IFastBinaryConverterWriteTWriter(TWriter, Object)

参见