KGy SOFT

BinarySerializer Class

KGy SOFT Core Libraries Help
Provides public static methods for binary serialization. Most of its methods will use an BinarySerializationFormatter instance internally.
See the Remarks section of the BinarySerializationFormatter class for details and an example.
Inheritance Hierarchy

SystemObject
  KGySoft.SerializationBinarySerializer

Namespace:  KGySoft.Serialization
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-alpha.1
Syntax

public static class BinarySerializer

The BinarySerializer type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCreateFormatter
Creates a formatter that can be used for serialization and deserialization with given options.
Public methodStatic memberDeserialize
Deserializes the specified part of a byte array into an object.
Public methodStatic memberDeserializeByReader
Deserializes data beginning at current position of given reader.
Public methodStatic memberDeserializeFromStream
Deserializes data beginning at current position of given stream.
Public methodStatic memberDeserializeValueArrayT
Deserializes an array of ValueType objects from a byte array that was previously serialized by SerializeValueArray method.
Public methodStatic memberDeserializeValueType(Type, Byte)
Deserializes a ValueType object from a byte array that was previously serialized by SerializeValueType method.
Public methodStatic memberDeserializeValueType(Type, Byte, Int32)
Deserializes a ValueType object from a byte array that was previously serialized by SerializeValueType method beginning on a specified offset.
Public methodStatic memberSerialize
Serializes an object into a byte array.
Public methodStatic memberSerializeByWriter
Serializes the given data by using the provided writer.
Public methodStatic memberSerializeToStream
Serializes the given data into a stream.
Public methodStatic memberSerializeValueArrayT
Serializes an Array of ValueTypes into a byte array.
Public methodStatic memberSerializeValueType
Serializes a ValueType into a byte array.
Public methodStatic memberTrySerializeValueArrayT
Tries to serialize an Array of ValueTypes into a byte array.
Public methodStatic memberTrySerializeValueType
Tries to serialize a ValueType into a byte array.
Top
See Also

Reference