C# Class CriwareXtxDecoder.Binary

Exibir arquivo Open project: xmoeproject/X-moe

Public Methods

Method Description
AsciiEqual ( byte name1, int offset, string name2 ) : bool
AsciiEqual ( byte name1, string name2 ) : bool
BigEndian ( int i ) : int
BigEndian ( long i ) : long
BigEndian ( short i ) : short
BigEndian ( uint u ) : uint
BigEndian ( ulong u ) : ulong
BigEndian ( ushort u ) : ushort
CopyOverlapped ( byte data, int src, int dst, int count ) : void
GetCString ( byte data, int index, int length_limit ) : string
GetCString ( byte data, int index, int length_limit, Encoding enc ) : string
RotByteL ( byte v, int count ) : byte
RotByteR ( byte v, int count ) : byte
RotL ( uint v, int count ) : uint
RotL ( ulong v, int count ) : ulong
RotR ( uint v, int count ) : uint
RotR ( ulong v, int count ) : ulong

Method Details

AsciiEqual() public static method

public static AsciiEqual ( byte name1, int offset, string name2 ) : bool
name1 byte
offset int
name2 string
return bool

AsciiEqual() public static method

public static AsciiEqual ( byte name1, string name2 ) : bool
name1 byte
name2 string
return bool

BigEndian() public static method

public static BigEndian ( int i ) : int
i int
return int

BigEndian() public static method

public static BigEndian ( long i ) : long
i long
return long

BigEndian() public static method

public static BigEndian ( short i ) : short
i short
return short

BigEndian() public static method

public static BigEndian ( uint u ) : uint
u uint
return uint

BigEndian() public static method

public static BigEndian ( ulong u ) : ulong
u ulong
return ulong

BigEndian() public static method

public static BigEndian ( ushort u ) : ushort
u ushort
return ushort

CopyOverlapped() public static method

public static CopyOverlapped ( byte data, int src, int dst, int count ) : void
data byte
src int
dst int
count int
return void

GetCString() public static method

public static GetCString ( byte data, int index, int length_limit ) : string
data byte
index int
length_limit int
return string

GetCString() public static method

public static GetCString ( byte data, int index, int length_limit, Encoding enc ) : string
data byte
index int
length_limit int
enc System.Text.Encoding
return string

RotByteL() public static method

public static RotByteL ( byte v, int count ) : byte
v byte
count int
return byte

RotByteR() public static method

public static RotByteR ( byte v, int count ) : byte
v byte
count int
return byte

RotL() public static method

public static RotL ( uint v, int count ) : uint
v uint
count int
return uint

RotL() public static method

public static RotL ( ulong v, int count ) : ulong
v ulong
count int
return ulong

RotR() public static method

public static RotR ( uint v, int count ) : uint
v uint
count int
return uint

RotR() public static method

public static RotR ( ulong v, int count ) : ulong
v ulong
count int
return ulong