Urho3D
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
Urho3D::RWOpsWrapper< T > Class Template Reference

Template wrapper class for using Serializer / Deserializer or their subclasses through SDL's RWOps structure. More...

#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/IO/RWOpsWrapper.h>

Public Member Functions

 RWOpsWrapper (T &object)
 Construct with object reference.
 
SDL_RWops * GetRWOps ()
 Return the RWOps structure.
 

Static Private Member Functions

static Sint64 Size (SDL_RWops *context)
 Return data size of the object.
 
static Sint64 Seek (SDL_RWops *context, Sint64 offset, int whence)
 Seek within the object's data.
 
static int Close (SDL_RWops *context)
 Close the object. Only meaningful for files, no-op otherwise.
 
static size_t Read (SDL_RWops *context, void *ptr, size_t size, size_t maxNum)
 Read from the object. Return number of "packets" read.
 
static size_t Write (SDL_RWops *context, const void *ptr, size_t size, size_t maxNum)
 Write to the object. Return number of "packets" written.
 

Private Attributes

SDL_RWops ops_
 SDL RWOps structure associated with the object.
 

Detailed Description

template<class T>
class Urho3D::RWOpsWrapper< T >

Template wrapper class for using Serializer / Deserializer or their subclasses through SDL's RWOps structure.


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