C# Class CriPakTools.CPK

Afficher le fichier Open project: xmoeproject/X-moe Class Usage Examples

Méthodes publiques

Свойство Type Description
FileTable List
TocOffset ulong
cpkdata object>.Dictionary
utf UTF

Méthodes publiques

Méthode Description
CPK ( Tools tool ) : System
DecompressCRILAYLA ( byte input, int USize ) : byte[]
DecryptUTF ( byte input ) : byte[]
GetColumnData ( UTF utf, int row, string Name ) : object
GetColumnPostion ( UTF utf, int row, string Name ) : long
GetColumnType ( UTF utf, int row, string Name ) : Type
GetColumsData2 ( UTF utf, int row, string Name, int type ) : object
ReadCPK ( string sPath ) : bool
ReadETOC ( System.IO.EndianReader br, ulong startoffset ) : bool
ReadGTOC ( System.IO.EndianReader br, ulong startoffset ) : bool
ReadITOC ( System.IO.EndianReader br, ulong startoffset, ulong ContentOffset, ushort Align ) : bool
ReadTOC ( System.IO.EndianReader br, ulong TocOffset, ulong ContentOffset ) : bool
UpdateFileEntry ( FileEntry fileEntry ) : void
UpdateValue ( byte &packet, object value, long pos, Type type ) : void
WriteCPK ( BinaryWriter cpk ) : void
WriteETOC ( BinaryWriter cpk ) : void
WriteGTOC ( BinaryWriter cpk ) : void
WriteITOC ( BinaryWriter cpk ) : void
WritePacket ( BinaryWriter cpk, string ID, ulong position, byte packet ) : void
WriteTOC ( BinaryWriter cpk ) : void

Private Methods

Méthode Description
CreateFileEntry ( string FileName, ulong FileOffset, Type FileOffsetType, long FileOffsetPos, string TOCName, string FileType, bool encrypted ) : FileEntry
ReadUTFData ( System.IO.EndianReader br ) : void
get_next_bits ( byte input, int &offset_p, byte &bit_pool_p, int &bits_left_p, int bit_count ) : ushort

Method Details

CPK() public méthode

public CPK ( Tools tool ) : System
tool Tools
Résultat System

DecompressCRILAYLA() public méthode

public DecompressCRILAYLA ( byte input, int USize ) : byte[]
input byte
USize int
Résultat byte[]

DecryptUTF() public méthode

public DecryptUTF ( byte input ) : byte[]
input byte
Résultat byte[]

GetColumnData() public méthode

public GetColumnData ( UTF utf, int row, string Name ) : object
utf UTF
row int
Name string
Résultat object

GetColumnPostion() public méthode

public GetColumnPostion ( UTF utf, int row, string Name ) : long
utf UTF
row int
Name string
Résultat long

GetColumnType() public méthode

public GetColumnType ( UTF utf, int row, string Name ) : Type
utf UTF
row int
Name string
Résultat System.Type

GetColumsData2() public méthode

public GetColumsData2 ( UTF utf, int row, string Name, int type ) : object
utf UTF
row int
Name string
type int
Résultat object

ReadCPK() public méthode

public ReadCPK ( string sPath ) : bool
sPath string
Résultat bool

ReadETOC() public méthode

public ReadETOC ( System.IO.EndianReader br, ulong startoffset ) : bool
br System.IO.EndianReader
startoffset ulong
Résultat bool

ReadGTOC() public méthode

public ReadGTOC ( System.IO.EndianReader br, ulong startoffset ) : bool
br System.IO.EndianReader
startoffset ulong
Résultat bool

ReadITOC() public méthode

public ReadITOC ( System.IO.EndianReader br, ulong startoffset, ulong ContentOffset, ushort Align ) : bool
br System.IO.EndianReader
startoffset ulong
ContentOffset ulong
Align ushort
Résultat bool

ReadTOC() public méthode

public ReadTOC ( System.IO.EndianReader br, ulong TocOffset, ulong ContentOffset ) : bool
br System.IO.EndianReader
TocOffset ulong
ContentOffset ulong
Résultat bool

UpdateFileEntry() public méthode

public UpdateFileEntry ( FileEntry fileEntry ) : void
fileEntry FileEntry
Résultat void

UpdateValue() public méthode

public UpdateValue ( byte &packet, object value, long pos, Type type ) : void
packet byte
value object
pos long
type System.Type
Résultat void

WriteCPK() public méthode

public WriteCPK ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
Résultat void

WriteETOC() public méthode

public WriteETOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
Résultat void

WriteGTOC() public méthode

public WriteGTOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
Résultat void

WriteITOC() public méthode

public WriteITOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
Résultat void

WritePacket() public méthode

public WritePacket ( BinaryWriter cpk, string ID, ulong position, byte packet ) : void
cpk System.IO.BinaryWriter
ID string
position ulong
packet byte
Résultat void

WriteTOC() public méthode

public WriteTOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
Résultat void

Property Details

FileTable public_oe property

public List FileTable
Résultat List

TocOffset public_oe property

public ulong TocOffset
Résultat ulong

cpkdata public_oe property

public Dictionary cpkdata
Résultat object>.Dictionary

utf public_oe property

public UTF,CriPakTools utf
Résultat UTF