Struct EmbeddedFile
- Namespace
- OmegaEngine.Foundation.Storage
- Assembly
- OmegaEngine.Foundation.dll
Information about an additional file to be stored alongside an ZIP archive using XmlStorage.
public struct EmbeddedFile
- Inherited Members
- Extension Methods
Constructors
EmbeddedFile(string, Action<Stream>)
Creates a new XML ZIP entry for reading
public EmbeddedFile(string filename, Action<Stream> readDelegate)
Parameters
filename
stringThe filename in the archive
readDelegate
Action<Stream>The delegate to be called when the data is ready to be read
EmbeddedFile(string, int, Action<Stream>)
Creates a new XML ZIP entry for writing
public EmbeddedFile(string filename, int compressionLevel, Action<Stream> writeDelegate)
Parameters
filename
stringThe filename in the archive
compressionLevel
intThe level of compression (0-9) to apply to this entry
writeDelegate
Action<Stream>The delegate to be called when the data is ready to be written
Properties
CompressionLevel
The level of compression (0-9) to apply to this entry
public readonly int CompressionLevel { get; }
Property Value
Filename
The filename in the archive
public readonly string Filename { get; }
Property Value
StreamDelegate
The delegate to be called when the data is ready to be read/written to/form a stream
public readonly Action<Stream> StreamDelegate { get; }