C# 클래스 TrainerEditor.IOUtils

파일 보기 프로젝트 열기: Jambo51/Trainer_Editor

공개 메소드들

메소드 설명
FromNDSu32 ( uint value ) : byte[]

Converts a u32 value into a sequence of bytes that would make ToNDSu32 return the given input value.

GetParent ( string path ) : string

Gets the full path to the parent directory of the given path.

ToNDSs32 ( byte buffer, int offset ) : int

Returns a 4-byte signed integer as used on the NDS converted from four bytes at a specified position in a byte array.

ToNDSu24 ( byte buffer, int offset ) : int

Returns a 3-byte integer as used in the built-in compression formats in the DS, convrted from three bytes at a specified position in a byte array,

ToNDSu32 ( byte buffer, int offset ) : uint

Returns a 4-byte unsigned integer as used on the NDS converted from four bytes at a specified position in a byte array.

비공개 메소드들

메소드 설명
LoadCompressionPlugin ( string file, bool printFailures = false ) : IEnumerable

(Attempts to) load compression formats from the given file.

LoadCompressionPlugins ( string folder ) : IEnumerable

Loads all compression formats found in the given folder.

메소드 상세

FromNDSu32() 공개 정적인 메소드

Converts a u32 value into a sequence of bytes that would make ToNDSu32 return the given input value.
public static FromNDSu32 ( uint value ) : byte[]
value uint
리턴 byte[]

GetParent() 공개 정적인 메소드

Gets the full path to the parent directory of the given path.
public static GetParent ( string path ) : string
path string The path to get the parent directory path of.
리턴 string

ToNDSs32() 공개 정적인 메소드

Returns a 4-byte signed integer as used on the NDS converted from four bytes at a specified position in a byte array.
public static ToNDSs32 ( byte buffer, int offset ) : int
buffer byte The source of the data.
offset int The location of the data in the source.
리턴 int

ToNDSu24() 공개 정적인 메소드

Returns a 3-byte integer as used in the built-in compression formats in the DS, convrted from three bytes at a specified position in a byte array,
public static ToNDSu24 ( byte buffer, int offset ) : int
buffer byte The source of the data.
offset int The location of the data in the source.
리턴 int

ToNDSu32() 공개 정적인 메소드

Returns a 4-byte unsigned integer as used on the NDS converted from four bytes at a specified position in a byte array.
public static ToNDSu32 ( byte buffer, int offset ) : uint
buffer byte The source of the data.
offset int The location of the data in the source.
리턴 uint