|
| StreamRWops (S &stream) |
| Construct StreamRWops for specified stream.
|
|
virtual Sint64 | Size () override |
| Get the size of the data stream.
|
|
virtual Sint64 | Seek (Sint64 offset, int whence) override |
| Seek within the stream.
|
|
virtual size_t | Read (void *ptr, size_t size, size_t maxnum) override |
| Read from a stream.
|
|
virtual size_t | Write (const void *ptr, size_t size, size_t num) override |
| Write to a stream.
|
|
virtual int | Close () override |
| Close stream.
|
|
virtual | ~CustomRWops () |
| Destructor.
|
|
virtual Sint64 | Size ()=0 |
| Get the size of the data stream.
|
|
virtual Sint64 | Seek (Sint64 offset, int whence)=0 |
| Seek within the data stream.
|
|
virtual size_t | Read (void *ptr, size_t size, size_t maxnum)=0 |
| Read from a data stream.
|
|
virtual size_t | Write (const void *ptr, size_t size, size_t num)=0 |
| Write to a data stream.
|
|
virtual int | Close ()=0 |
| Close data source.
|
|
template<class S>
class SDL2pp::StreamRWops< S >
RWops adaptor for STL streams.
This class extends functionality of RWops concept onto STL streams. With ContainerRWops, you may read from / write to STL streams with SDL functions.
This template supports both input and output streams, but not at the same time, as separate input and output pointers of streams are not compatible with RWops.