BinarySerializerDeserialize(Byte, Int32, BinarySerializationOptions) Method
Deserializes the specified part of a byte array into an object. If
SafeMode is enabled
in
options and
rawData contains natively not supported types by name, then you should use
the other overloads to specify the expected types.
See the
Remarks section of the
DeserializeT(Byte, Int32, BinarySerializationOptions, Type) overload for details.
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static Object? Deserialize(
byte[] rawData,
int offset = 0,
BinarySerializationOptions options = BinarySerializationOptions.SafeMode
)
Public Shared Function Deserialize (
rawData As Byte(),
Optional offset As Integer = 0,
Optional options As BinarySerializationOptions = BinarySerializationOptions.SafeMode
) As Object
public:
static Object^ Deserialize(
array<unsigned char>^ rawData,
int offset = 0,
BinarySerializationOptions options = BinarySerializationOptions::SafeMode
)
static member Deserialize :
rawData : byte[] *
?offset : int *
?options : BinarySerializationOptions
(* Defaults:
let _offset = defaultArg offset 0
let _options = defaultArg options BinarySerializationOptions.SafeMode
*)
-> Object
- rawData Byte
- Contains the raw data representation of the object to deserialize.
- offset Int32 (Optional)
- Points to the starting position of the object data in rawData. This parameter is optional.
Default value: 0. - options BinarySerializationOptions (Optional)
- Options of the deserialization. This parameter is optional.
Default value: SafeMode.
ObjectThe deserialized object.