C# 클래스 Alexandria.Platforms.NintendoDS.Extensions

Extension methods.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria

공개 메소드들

메소드 설명
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