C# Класс Alexandria.Platforms.NintendoDS.Extensions

Extension methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

DecompressData() публичный статический метод

Read a header and decompress data.
public static DecompressData ( this reader, long inputEnd ) : byte[]
reader this
inputEnd long
Результат byte[]

DecompressLZ77() публичный статический метод

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
Результат byte[]

ReadNDSColor() публичный статический метод

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.
Результат Color