FileSerializer Class

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

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition