![]() |
BlitzMax Extended
0.8.17
Pushing Blitz to the Max.
|
Functionality to include any binary data in the binary. More...
Go to the source code of this file.
Macros | |
#define | BBINCBIN_MAX_SIZE BBMEM_MAX_ALLOCSIZE |
The maximum size of a file that can be included via bbIncbinAdd. |
Functions | |
BBInt | bbIncbinAdd (BBString *file, const void *buf, BBSize size) |
Adds a file to the binary included data. | |
void * | bbIncbinPtr (const BBString *file) |
Gives a pointer to the data stored under the given file name. | |
BBSize | bbIncbinLen (const BBString *file) |
Gives the length of the data stored under the given file name. |
Functionality to include any binary data in the binary.
'Incbin' is a BlitzMax keyword. When executed, the compiler looks for the file which is given as the parameter. If the file is found, it is included in the application's binary file by the compiler.
When the application is run, the function bbIncbinAdd is called and automatically given the right parameters. This fills the internal structure with the information which can then be accessed via bbIncbinPtr and bbIncbinLen.
At least that's what I figured out so far - Fabian
#define BBINCBIN_MAX_SIZE BBMEM_MAX_ALLOCSIZE |
The maximum size of a file that can be included via bbIncbinAdd.
Referenced by bbIncbinAdd().
Adds a file to the binary included data.
file | The file where the data came from |
buf | A pointer to the binary included data |
size | The size of the data in the range [0 .. BBINCBIN_MAX_SIZE] |
1 | if the file was successfully incbin'd |
0 | if the file was already included |
BBSize bbIncbinLen | ( | const BBString * | file | ) |
Gives the length of the data stored under the given file name.
file | The file where the data came from |
void* bbIncbinPtr | ( | const BBString * | file | ) |
Gives a pointer to the data stored under the given file name.
file | The file where the data came from |