C# Class Alexandria.Platforms.NintendoDS.Extensions

Extension methods.
Datei anzeigen Open project: Burton-Radons/Alexandria

Public Methods

Method Description
DecompressData ( this reader, long inputEnd ) : byte[]

Read a header and decompress data.

DecompressLZ77 ( this reader, long inputEnd, int outputSize, bool acceptInputOverflow = false, bool ffEscape = false ) : byte[]

Decompress LZ77-compressed data.

ReadNDSColor ( this reader, bool useAlpha = false, bool forceTransparent = false ) : Color

Read a two-byte color code for the Nintendo DS. They are stored as unsigned shorts, 5 bits per component, with an optional alpha bit.

Method Details

DecompressData() public static method

Read a header and decompress data.
public static DecompressData ( this reader, long inputEnd ) : byte[]
reader this
inputEnd long
return byte[]

DecompressLZ77() public static method

Decompress LZ77-compressed data.
public static DecompressLZ77 ( this reader, long inputEnd, int outputSize, bool acceptInputOverflow = false, bool ffEscape = false ) : byte[]
reader this
inputEnd long
outputSize int
acceptInputOverflow bool
ffEscape bool
return byte[]

ReadNDSColor() public static method

Read a two-byte color code for the Nintendo DS. They are stored as unsigned shorts, 5 bits per component, with an optional alpha bit.
public static ReadNDSColor ( this reader, bool useAlpha = false, bool forceTransparent = false ) : Color
reader this What to read the color from.
useAlpha bool Whether to use the alpha bit. The default is false.
forceTransparent bool Whether to force a transparent color. The default is false.
return Color