PackageFastBinaryConverterTPackageIFastBinaryConverterRead 方法
从字节块中读取数据并转换为TPackage类型的对象。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
Object IFastBinaryConverter.Read<TByteBlock>(
ref TByteBlock byteBlock,
Type type
)
where TByteBlock : IBytesReader
Private Function Read(Of TByteBlock As IBytesReader) (
ByRef byteBlock As TByteBlock,
type As Type
) As Object Implements IFastBinaryConverter.Read
private abstract Read :
byteBlock : 'TByteBlock byref *
type : Type -> Object when 'TByteBlock : IBytesReader
private override Read :
byteBlock : 'TByteBlock byref *
type : Type -> Object when 'TByteBlock : IBytesReader
- byteBlock TByteBlock
- 字节块的引用。
- type Type
- 要转换的类型。
- TByteBlock
- 实现了IByteBlock接口的字节块类型。
Object转换后的TPackage类型的对象。
IFastBinaryConverterReadTReader(TReader, Type)