C# Class CriPakTools.Tools

Mostra file Open project: xmoeproject/X-moe

Public Methods

Method Description
DeleteFileIfExists ( string sPath ) : void
GetData ( BinaryReader br, long offset, int size ) : byte[]
GetPath ( string input ) : string
ReadCString ( BinaryReader br, int MaxLength = -1, long lOffset = -1, Encoding enc = null ) : string
Tools ( ) : System

Private Methods

Method Description
memcmp ( byte b1, byte b2, long count ) : int

Method Details

DeleteFileIfExists() public method

public DeleteFileIfExists ( string sPath ) : void
sPath string
return void

GetData() public method

public GetData ( BinaryReader br, long offset, int size ) : byte[]
br System.IO.BinaryReader
offset long
size int
return byte[]

GetPath() public method

public GetPath ( string input ) : string
input string
return string

ReadCString() public method

public ReadCString ( BinaryReader br, int MaxLength = -1, long lOffset = -1, Encoding enc = null ) : string
br System.IO.BinaryReader
MaxLength int
lOffset long
enc System.Text.Encoding
return string

Tools() public method

public Tools ( ) : System
return System