|
|
Closes an MG_RWops object. This macro close the MG_RWops object pointed to by ctx.
Definition at line 312 of file endianrw.h. |
|
|
Tests the end-of-file indicator for an data source. This macro tests the end-of-file indicator for the data source pointed to by ctx.
Definition at line 327 of file endianrw.h. |
|
|
Reads data blocks from a data source. This macro reads up to n objects each of size size from the data source ctx to the area pointed to by ptr.
Definition at line 280 of file endianrw.h. |
|
|
Seeks an MG_RWops object. This macro seeks to offset relative to whence.
Definition at line 248 of file endianrw.h. |
|
|
Obtains the current value of the position indicator for a data source. This macro obtains the current value of the position indicator for the data source pointed to by ctx.
Definition at line 263 of file endianrw.h. |
|
|
Writes data blocks to a data source. This macro writes exactly n objects each of size size from the area pointed to by ptr to the data source ctx.
Definition at line 297 of file endianrw.h. |
|
|
The read/write operation structure. |
|
|
Allocates an uninitialized MG_RWops object. This function allocates an uninitialized MG_RWops object. You can specify the fields of the structure, and implemente a customized MG_RWops object.
|
|
|
Frees an MG_RWops object. This function frees the MG_RWops object pointed to by area.
|
|
||||||||||||||||
|
Initializes an MG_RWops object from a block of memory. This function initializes an MG_RWops object pointed to by area from a block of memory pointed to by mem, which is size bytes long.
|
|
||||||||||||
|
Creates an MG_RWops object from a file. This function uses the mode specified by mode and opens the file file by using stdio function fopen. If success, this function creates a MG_RWops object and returns it.
|
|
||||||||||||
|
Creates an MG_RWops object from an opened stdio FILE object. This function uses an opened stdio FILE object fp to create a MG_RWops object.
|
|
||||||||||||
|
Creates an MG_RWops object from a block of memory. This function creates an MG_RWops object from a block of memory pointed to by mem, which is size bytes long.
|
|
|
Reads the next character from an data source. This function reads the next character from the data source pointed to by area, and returns it as an unsigned char cast to an int, or EOF on end of file or error.
|
1.4.2