C# Class Nintenlord.ROMHacking.UPSfile

Inheritance: ICloneable
Mostra file Open project: Diegoisawesome/AwesomeMapEditor-old Class Usage Examples

Public Methods

Method Description
Apply ( byte file ) : byte[]
Apply ( string path ) : byte[]
ChangeOffsets ( ulong offset, int length ) : bool
ChangesOffset ( ulong offset ) : bool
Clone ( ) : object

Creates a deeb copy of the object

GetData ( ) : ].int[
UPSfile ( byte originalFile, byte newFile ) : System
UPSfile ( string filePath ) : System

Creates a new UPS patch from UPS file

ValidToApply ( byte file ) : bool
WriteToFile ( string path ) : void
operator ( ) : UPSfile

Private Methods

Method Description
CalculatePatchCRC32 ( ) : uint
Decrypt ( byte pointer ) : ulong
Encrypt ( ulong offset ) : byte[]
ToBinary ( ) : byte[]
UPSfile ( ulong changedOffsets, byte XORbytes, uint originalFileCRC32, uint newFileCRC32, ulong oldFileSize, ulong newFileSize ) : System

Method Details

Apply() public method

public Apply ( byte file ) : byte[]
file byte
return byte[]

Apply() public method

public Apply ( string path ) : byte[]
path string
return byte[]

ChangeOffsets() public method

public ChangeOffsets ( ulong offset, int length ) : bool
offset ulong
length int
return bool

ChangesOffset() public method

public ChangesOffset ( ulong offset ) : bool
offset ulong
return bool

Clone() public method

Creates a deeb copy of the object
public Clone ( ) : object
return object

GetData() public method

public GetData ( ) : ].int[
return ].int[

UPSfile() public method

public UPSfile ( byte originalFile, byte newFile ) : System
originalFile byte
newFile byte
return System

UPSfile() public method

Creates a new UPS patch from UPS file
public UPSfile ( string filePath ) : System
filePath string A path to an existing, valid UPS path.
return System

ValidToApply() public method

public ValidToApply ( byte file ) : bool
file byte
return bool

WriteToFile() public method

public WriteToFile ( string path ) : void
path string
return void

operator() public static method

public static operator ( ) : UPSfile
return UPSfile