Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

_MG_RWops Struct Reference
[General read/write operations]

#include <endianrw.h>

Data Fields


Detailed Description

The read/write operation structure.

Definition at line 71 of file endianrw.h.


Field Documentation

int(* close)(struct _MG_RWops *context)
 

Close and free an allocated MG_RWops structure.

int(* eof)(struct _MG_RWops *context)
 

Test the end-of-file indicator.

int(* read)(struct _MG_RWops *context, void *ptr, int objsize, int num)
 

Read up to num objects each of size objsize from the data source to the area pointed at by ptr. Returns the number of objects read, or -1 if the read failed.

int(* seek)(struct _MG_RWops *context, int offset, int whence)
 

Seek to offset relative to whence, one of stdio's whence values:
SEEK_SET, SEEK_CUR, SEEK_END
Returns the final offset in the data source.

Uint32 type
 

Indicates the type of data source. can be one of the following values:

  • RWAREA_TYPE_UNKNOWN
    A unknown (uninitialized) data source type.
  • RWAREA_TYPE_STDIO
    Stdio stream data source.
  • RWAREA_TYPE_MEM
    Memory data source.

Definition at line 119 of file endianrw.h.

int(* write)(struct _MG_RWops *context, const void *ptr, int objsize, int num)
 

Write exactly num objects each of size objsize from the area pointed at by ptr to data source. Returns num, or -1 if the write failed.


The documentation for this struct was generated from the following file:
Generated on Mon Jun 26 13:54:28 2006 for MiniGUI V1.6.9 API Reference by  doxygen 1.4.2