|
CeresEngine 0.2.0
A game development framework
|
A stream associated to a resource. More...
#include <CeresEngine/Resource/ResourceStream.hpp>
Public Member Functions | |
| HResourceStream ()=default | |
| HResourceStream (const HResourceStream &)=delete | |
| HResourceStream & | operator= (const HResourceStream &)=delete |
| HResourceStream (HResourceStream &&) noexcept=default | |
| HResourceStream & | operator= (HResourceStream &&) noexcept=default |
| Async< ResourceInputStream > | openInputStream () const |
| Opens a resource stream for reading. | |
| Async< ResourceOutputStream > | openOutputStream () |
| Creates a new resource stream. | |
| operator bool () const noexcept | |
| Determines if the stream is valid or not. | |
Private Member Functions | |
| HResourceStream (const ResourceStreamDataPtr &streamData) | |
| HResourceStream (ResourceStreamData &streamData) | |
Private Attributes | |
| ResourceStreamDataPtr | mData = nullptr |
| The stream data pointer. If null, the stream is null. | |
Friends | |
| class | Resource |
| class | ResourceManager |
A stream associated to a resource.
The stream can be read or written to and can contain any type of bulk data the resource desires to store. For instance, meshes can store the the vertex and index data into a stream. Texture can store their raw bitmaps into a stream.
Streams are not loaded when the resource is first loaded and it will be streamed during runtime when needed. This allows to store a large amount of data without worrying about memory usage.
|
default |
|
delete |
|
defaultnoexcept |
|
explicitprivate |
|
inlineexplicitprivate |
| Async< ResourceInputStream > CeresEngine::HResourceStream::openInputStream | ( | ) | const |
Opens a resource stream for reading.
| Async< ResourceOutputStream > CeresEngine::HResourceStream::openOutputStream | ( | ) |
Creates a new resource stream.
If the stream with the given ID already exists, its contents will be replaced with the new data written to the stream.
|
inlineexplicitnoexcept |
Determines if the stream is valid or not.
|
delete |
|
defaultnoexcept |
|
friend |
|
private |
The stream data pointer. If null, the stream is null.