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

FastBinaryConverterTIFastBinaryConverterRead 方法

通过此实现从字节块中读取对象。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
Object IFastBinaryConverter.Read<TByteBlock>(
	ref TByteBlock byteBlock,
	Type type
)
where TByteBlock : IByteBlock

参数

byteBlock  TByteBlock
包含对象数据的字节块。
type  Type
要读取的对象的类型。

类型参数

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

返回值

Object
从字节块中读取的对象实例。

实现

IFastBinaryConverterReadTByteBlock(TByteBlock, Type)

参见