FileSerializer Class
Name | Description | |
---|---|---|
FileSerializer() | Empty constructor used in conjunction with the <see cref="WriteFile" /> class. | |
FileSerializer(contentType) | Constructor used in conjunction with the <see cref="ReadFile" /> class. |
Name | Description | |
---|---|---|
Content | Gets or sets the contentType for deserialization purpose. During the serialization process, it is internally initialized with the FileHeader.Content. | |
FileBody | Gets the file content. | |
FileHeader | Gets the file header. |
Name | Description | |
---|---|---|
Deserialize(Stream) | Deserializes the document. | |
DeserializeBody(Stream, ProtoBuf.SerializationContext) | Deserialize the file body. | |
DeserializeHeader(Stream) | Deserializes the file header. | |
DeserializeWithLengthPrefix<T>(Stream, out long, out bool) | Applies a protocol-buffer stream to an existing instance (or null), using length-prefixed data. | |
Equals(Object) | Determines whether the specified object is equal to the current object. (inherited from Object). | |
FillHeaderModel() | ||
FillModel() | ||
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object). | |
GetHashCode | Serves as the default hash function. (inherited from Object). | |
GetType | Gets the Type of the current instance. (inherited from Object). | |
GetTypeForObject(string) | ||
MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object). | |
Serialize(Stream) | Serializes the file to the stream. | |
SerializeFile(FileHeader, FileBody, Stream) | Serializes the file to stream. | |
SerializeFile(Stream) | Serializes the file to stream. | |
SerializeHeader(Stream) | Serialize the file header. | |
SerializeWithLengthPrefix<T>(Stream, T) | Writes a protocol-buffer representation of the given object to the supplied stream with a length-prefix. | |
SetFile(FileHeader, FileBody) | Sets file and file header for serialization purpose. | |
SetFileHeader(FileHeader) | Sets the file header data. | |
ToString | Returns a string that represents the current object. (inherited from Object). |
devDept.Serialization.FileSerializer