C# Class CriPakTools.CPK

Mostra file Open project: xmoeproject/X-moe Class Usage Examples

Public Properties

Property Type Description
FileTable List
TocOffset ulong
cpkdata object>.Dictionary
utf UTF

Public Methods

Method 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

Method 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 method

public CPK ( Tools tool ) : System
tool Tools
return System

DecompressCRILAYLA() public method

public DecompressCRILAYLA ( byte input, int USize ) : byte[]
input byte
USize int
return byte[]

DecryptUTF() public method

public DecryptUTF ( byte input ) : byte[]
input byte
return byte[]

GetColumnData() public method

public GetColumnData ( UTF utf, int row, string Name ) : object
utf UTF
row int
Name string
return object

GetColumnPostion() public method

public GetColumnPostion ( UTF utf, int row, string Name ) : long
utf UTF
row int
Name string
return long

GetColumnType() public method

public GetColumnType ( UTF utf, int row, string Name ) : Type
utf UTF
row int
Name string
return System.Type

GetColumsData2() public method

public GetColumsData2 ( UTF utf, int row, string Name, int type ) : object
utf UTF
row int
Name string
type int
return object

ReadCPK() public method

public ReadCPK ( string sPath ) : bool
sPath string
return bool

ReadETOC() public method

public ReadETOC ( System.IO.EndianReader br, ulong startoffset ) : bool
br System.IO.EndianReader
startoffset ulong
return bool

ReadGTOC() public method

public ReadGTOC ( System.IO.EndianReader br, ulong startoffset ) : bool
br System.IO.EndianReader
startoffset ulong
return bool

ReadITOC() public method

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

ReadTOC() public method

public ReadTOC ( System.IO.EndianReader br, ulong TocOffset, ulong ContentOffset ) : bool
br System.IO.EndianReader
TocOffset ulong
ContentOffset ulong
return bool

UpdateFileEntry() public method

public UpdateFileEntry ( FileEntry fileEntry ) : void
fileEntry FileEntry
return void

UpdateValue() public method

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

WriteCPK() public method

public WriteCPK ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
return void

WriteETOC() public method

public WriteETOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
return void

WriteGTOC() public method

public WriteGTOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
return void

WriteITOC() public method

public WriteITOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
return void

WritePacket() public method

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

WriteTOC() public method

public WriteTOC ( BinaryWriter cpk ) : void
cpk System.IO.BinaryWriter
return void

Property Details

FileTable public_oe property

public List FileTable
return List

TocOffset public_oe property

public ulong TocOffset
return ulong

cpkdata public_oe property

public Dictionary cpkdata
return object>.Dictionary

utf public_oe property

public UTF,CriPakTools utf
return UTF