_MG_RWops Struct Reference
[General read/write operations]

#include <endianrw.h>

Data Fields


Detailed Description

The read/write operation structure.

Definition at line 74 of file endianrw.h.


Field Documentation

int(* close)(struct _MG_RWops *context)

Close and free an allocated MG_RWops structure.

Definition at line 105 of file endianrw.h.

int(* eof)(struct _MG_RWops *context)

Test the end-of-file indicator.

Definition at line 110 of file endianrw.h.

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.

Definition at line 87 of file endianrw.h.

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.

Definition at line 80 of file endianrw.h.

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 122 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.

Definition at line 94 of file endianrw.h.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 7 16:01:53 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3