arsa  2.7
Public Member Functions | Public Attributes | List of all members
SDL_RWops Struct Reference

#include <SDL_rwops.h>

Public Member Functions

 Sint64 (SDLCALL *size)(struct SDL_RWops *context)
 
 Sint64 (SDLCALL *seek)(struct SDL_RWops *context
 
 size_t (SDLCALL *read)(struct SDL_RWops *context
 
 size_t (SDLCALL *write)(struct SDL_RWops *context
 
 int (SDLCALL *close)(struct SDL_RWops *context)
 

Public Attributes

Sint64 offset
 
Sint64 int whence
 
voidptr
 
void size_t size
 
void size_t size_t maxnum
 
const voidptr
 
const void size_t size
 
const void size_t size_t num
 
Uint32 type
 
union {
   struct {
      Uint8 *   base
 
      Uint8 *   here
 
      Uint8 *   stop
 
   }   mem
 
   struct {
      void *   data1
 
      void *   data2
 
   }   unknown
 
hidden
 

Detailed Description

This is the read/write operation structure – very basic.

Definition at line 52 of file SDL_rwops.h.

Member Function Documentation

◆ int()

SDL_RWops::int ( SDLCALL close)

Close and free an allocated SDL_RWops structure.

Returns
0 if successful or -1 on write error when flushing data.

◆ Sint64() [1/2]

SDL_RWops::Sint64 ( SDLCALL size)

Return the size of the file in this rwops, or -1 if unknown

◆ Sint64() [2/2]

SDL_RWops::Sint64 ( SDLCALL seek)

Seek to offset relative to whence, one of stdio's whence values: RW_SEEK_SET, RW_SEEK_CUR, RW_SEEK_END

Returns
the final offset in the data stream, or -1 on error.

◆ size_t() [1/2]

SDL_RWops::size_t ( SDLCALL read)

Read up to maxnum objects each of size size from the data stream to the area pointed at by ptr.

Returns
the number of objects read, or 0 at error or end of file.

◆ size_t() [2/2]

SDL_RWops::size_t ( SDLCALL write)

Write exactly num objects each of size size from the area pointed at by ptr to data stream.

Returns
the number of objects written, or 0 at error or end of file.

Member Data Documentation

◆ base

Uint8* SDL_RWops::base

Definition at line 132 of file SDL_rwops.h.

◆ data1

void* SDL_RWops::data1

Definition at line 138 of file SDL_rwops.h.

◆ data2

void* SDL_RWops::data2

Definition at line 139 of file SDL_rwops.h.

◆ here

Uint8* SDL_RWops::here

Definition at line 133 of file SDL_rwops.h.

◆ hidden

union { ... } SDL_RWops::hidden

◆ maxnum

void size_t size_t SDL_RWops::maxnum

Definition at line 74 of file SDL_rwops.h.

◆ mem

struct { ... } SDL_RWops::mem

◆ num

const void size_t size_t SDL_RWops::num

Definition at line 83 of file SDL_rwops.h.

◆ offset

Sint64 SDL_RWops::offset

Definition at line 65 of file SDL_rwops.h.

◆ ptr [1/2]

void* SDL_RWops::ptr

Definition at line 74 of file SDL_rwops.h.

◆ ptr [2/2]

const void* SDL_RWops::ptr

Definition at line 83 of file SDL_rwops.h.

◆ size [1/2]

void size_t SDL_RWops::size

Definition at line 74 of file SDL_rwops.h.

◆ size [2/2]

const void size_t SDL_RWops::size

Definition at line 83 of file SDL_rwops.h.

◆ stop

Uint8* SDL_RWops::stop

Definition at line 134 of file SDL_rwops.h.

◆ type

Uint32 SDL_RWops::type

Definition at line 93 of file SDL_rwops.h.

◆ unknown

struct { ... } SDL_RWops::unknown

◆ whence

Sint64 int SDL_RWops::whence

Definition at line 65 of file SDL_rwops.h.


The documentation for this struct was generated from the following file: