Table of Contents

Class Binary2Banner

Namespace
SceneGate.Ekona.Containers.Rom
Assembly
SceneGate.Ekona.dll

Convert a binary format into a container with the banner information.

public class Binary2Banner : IConverter<IBinary, NodeContainerFormat>, IConverter
Inheritance
Binary2Banner
Implements
IConverter<IBinary, NodeContainerFormat>
IConverter
Inherited Members

Remarks

Supported versions: 0.1, 0.2, 0.3 and 1.3 (except animated icons).

The new container hierarchy is:

/infoProgram banner content.
/iconProgram icon.

Properties

NumAnimatedImages

Gets the maximum number of animated images.

public static int NumAnimatedImages { get; }

Property Value

int

Methods

Convert(IBinary)

Read a banner from a binary format.

public NodeContainerFormat Convert(IBinary source)

Parameters

source IBinary

Source binary to read from.

Returns

NodeContainerFormat

The new container with the banner.

GetSize(Stream)

Gets the serialized size of the banner including padding.

public static int GetSize(Stream stream)

Parameters

stream Stream

The stream to analyze.

Returns

int

The expected size of the binary banner.

Remarks

The stream must be in the start of the banner. The position is restored to the start of the banner.

GetSize(Version)

Gets the serialized size of the banner including padding.

public static int GetSize(Version version)

Parameters

version Version

Version of the banner.

Returns

int

The expected size of the binary banner.