|
|
constexpr | Storage ()=default |
| | Default ctor.
|
| |
| constexpr | Storage (const StorageRaw resource) |
| | Constructs from StorageParam. More...
|
| |
|
constexpr | Storage (const Storage &other)=delete |
| | Copy constructor.
|
| |
|
constexpr | Storage (Storage &&other) |
| | Move constructor.
|
| |
|
constexpr | Storage (const StorageRef &other)=delete |
| |
|
constexpr | Storage (StorageRef &&other)=delete |
| |
| | Storage (StringParam override, PropertiesParam props) |
| | Opens up a read-only container for the application's filesystem. More...
|
| |
| | Storage (StringParam org, StringParam app, PropertiesParam props) |
| | Opens up a container for a user's unique read/write filesystem. More...
|
| |
| | Storage (StringParam path) |
| | Opens up a container for local filesystem storage. More...
|
| |
| | Storage (const StorageInterface &iface, void *userdata) |
| | Opens up a container using a client-provided storage interface. More...
|
| |
|
| ~Storage () |
| | Destructor.
|
| |
|
Storage & | operator= (Storage other) |
| | Assignment operator.
|
| |
|
constexpr StorageRaw | get () const |
| | Retrieves underlying StorageRaw.
|
| |
|
constexpr StorageRaw | release () |
| | Retrieves underlying StorageRaw and clear this.
|
| |
|
constexpr auto | operator<=> (const Storage &other) const =default |
| | Comparison.
|
| |
|
constexpr bool | operator== (std::nullptr_t _) const |
| | Comparison.
|
| |
|
constexpr | operator bool () const |
| | Converts to bool.
|
| |
|
constexpr | operator StorageParam () const |
| | Converts to StorageParam.
|
| |
| bool | Close () |
| | Closes and frees a storage container. More...
|
| |
| bool | Ready () |
| | Checks if the storage container is ready to use. More...
|
| |
| std::optional< Uint64 > | GetFileSize (StringParam path) |
| | Query the size of a file within a storage container. More...
|
| |
| bool | ReadFile (StringParam path, TargetBytes destination) |
| | Synchronously read a file from a storage container into a client-provided buffer. More...
|
| |
| std::string | ReadFile (StringParam path) |
| | Synchronously read a file from a storage container into a client-provided buffer. More...
|
| |
| template<class T > |
| std::vector< T > | ReadFileAs (StringParam path) |
| | Synchronously read a file from a storage container into a client-provided buffer. More...
|
| |
| void | WriteFile (StringParam path, SourceBytes source) |
| | Synchronously write a file from client memory into a storage container. More...
|
| |
| void | CreateDirectory (StringParam path) |
| | Create a directory in a writable storage container. More...
|
| |
| void | EnumerateDirectory (StringParam path, EnumerateDirectoryCallback callback, void *userdata) |
| | Enumerate a directory in a storage container through a callback function. More...
|
| |
| std::vector< Path > | EnumerateDirectory (StringParam path) |
| | Enumerate a directory in a storage container through a callback function. More...
|
| |
| void | EnumerateDirectory (StringParam path, EnumerateDirectoryCB callback) |
| | Enumerate a directory in a storage container through a callback function. More...
|
| |
| void | RemovePath (StringParam path) |
| | Remove a file or an empty directory in a writable storage container. More...
|
| |
| void | RenamePath (StringParam oldpath, StringParam newpath) |
| | Rename a file or directory in a writable storage container. More...
|
| |
| void | CopyFile (StringParam oldpath, StringParam newpath) |
| | Copy a file in a writable storage container. More...
|
| |
| PathInfo | GetPathInfo (StringParam path) |
| | Get information about a filesystem path in a storage container. More...
|
| |
| Uint64 | GetSpaceRemaining () |
| | Queries the remaining space in a storage container. More...
|
| |
| OwnArray< char * > | GlobDirectory (StringParam path, StringParam pattern, GlobFlags flags) |
| | Enumerate a directory tree, filtered by pattern, and return a list. More...
|
| |
This is an opaque datatype. One can create this object using standard SDL functions like Storage.Storage, etc, or create an object with a custom implementation using Storage.Storage.
- Since
- This struct is available since SDL 3.2.0.
- Category:
- Resource