Table of Contents

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 string

The 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 string

The filename in the archive

compressionLevel int

The 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

int

Filename

The filename in the archive

public readonly string Filename { get; }

Property Value

string

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; }

Property Value

Action<Stream>