FastBinaryFormatterDeserializeTByteBlock(TByteBlock, Type, FastSerializerContext) 方法
使用指定的序列化上下文从字节块中反序列化对象。
命名空间: TouchSocket.Core程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public static Object Deserialize<TByteBlock>(
ref TByteBlock byteBlock,
Type type,
FastSerializerContext serializerContext = null
)
where TByteBlock : IByteBlock
Public Shared Function Deserialize(Of TByteBlock As IByteBlock) (
ByRef byteBlock As TByteBlock,
type As Type,
Optional serializerContext As FastSerializerContext = Nothing
) As Object
static member Deserialize :
byteBlock : 'TByteBlock byref *
type : Type *
?serializerContext : FastSerializerContext
(* Defaults:
let _serializerContext = defaultArg serializerContext null
*)
-> Object when 'TByteBlock : IByteBlock
- byteBlock TByteBlock
- 包含序列化数据的字节块。
- type Type
- 要反序列化为的类型。
- serializerContext FastSerializerContext (Optional)
- 用于反序列化的FastSerializerContext实例。
- TByteBlock
- 实现IByteBlock接口的类型,用于读取字节数据。
Object反序列化后的对象。