C# Class Nintenlord.ROMHacking.UPSfile

Inheritance: ICloneable
Afficher le fichier Open project: Diegoisawesome/AwesomeMapEditor-old Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Apply ( byte file ) : byte[]
file byte
Résultat byte[]

Apply() public méthode

public Apply ( string path ) : byte[]
path string
Résultat byte[]

ChangeOffsets() public méthode

public ChangeOffsets ( ulong offset, int length ) : bool
offset ulong
length int
Résultat bool

ChangesOffset() public méthode

public ChangesOffset ( ulong offset ) : bool
offset ulong
Résultat bool

Clone() public méthode

Creates a deeb copy of the object
public Clone ( ) : object
Résultat object

GetData() public méthode

public GetData ( ) : ].int[
Résultat ].int[

UPSfile() public méthode

public UPSfile ( byte originalFile, byte newFile ) : System
originalFile byte
newFile byte
Résultat System

UPSfile() public méthode

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

ValidToApply() public méthode

public ValidToApply ( byte file ) : bool
file byte
Résultat bool

WriteToFile() public méthode

public WriteToFile ( string path ) : void
path string
Résultat void

operator() public static méthode

public static operator ( ) : UPSfile
Résultat UPSfile