C# Class Monobjc.Tools.Generators.DataLibraryCreator

Class that embeds an arbitrary file into a static library.

The static library then export two symbols: one for the data and one for the size.

Afficher le fichier Open project: Monobjc/monobjc-tools Class Usage Examples

Méthodes publiques

Méthode Description
CreateStaticLibrary ( String dataFile, bool needZeroEnd ) : void

Creates the static library.

DataLibraryCreator ( ) : System

Initializes a new instance of the DataLibraryCreator class.

Private Methods

Méthode Description
GetSymbolName ( String filename ) : String

Gets the pretty name of a file. The name will be ready for inclusion in source code.

Locate ( byte buffer, byte pattern ) : int

Locates the specified pattern in the buffer.

Match ( byte buffer, byte pattern, int position ) : bool

Test to see if the buffer match the pattern at the given position.

Method Details

CreateStaticLibrary() public méthode

Creates the static library.
public CreateStaticLibrary ( String dataFile, bool needZeroEnd ) : void
dataFile String /// Data file. ///
needZeroEnd bool /// Need zero end. ///
Résultat void

DataLibraryCreator() public méthode

Initializes a new instance of the DataLibraryCreator class.
public DataLibraryCreator ( ) : System
Résultat System