Table of Contents

Class SgaFile

Namespace
OpenCompote.SGA
Assembly
OpenCompote.dll

Represents a file within a SGA archive.

public class SgaFile : SgaEntry
Inheritance
SgaFile
Inherited Members

Properties

CompressedSize

Gets the compressed size in bytes, of the file in the archive.

public uint CompressedSize { get; }

Property Value

uint

Size

Gets the uncompressed size in bytes, of the file in the archive.

public uint Size { get; }

Property Value

uint

StorageType

Gets or sets the value that indicates how should the file is compressed.

public StorageType StorageType { get; set; }

Property Value

StorageType

Exceptions

ObjectDisposedException

The archive for this file has been disposed.

InvalidOperationException

The archive is opened in read-only mode or file is currently open."

Methods

Open()

Opens the file from the SGA archive.

public Stream Open()

Returns

Stream

The stream that represents the contents of the file.

Exceptions

ObjectDisposedException

The SGA archive for this folder has been disposed.

IOException

The entry is already currently open for writing.

InvalidOperationException

The archive was opened in invalid mode.