sdl3/generated/lib_sdl_storage library

Functions

sdlCloseStorage(Pointer<SdlStorage> storage) bool
Closes and frees a storage container.
sdlCopyStorageFile(Pointer<SdlStorage> storage, String? oldpath, String? newpath) bool
Copy a file in a writable storage container.
sdlCreateStorageDirectory(Pointer<SdlStorage> storage, String? path) bool
Create a directory in a writable storage container.
sdlEnumerateStorageDirectory(Pointer<SdlStorage> storage, String? path, Pointer<NativeFunction<SdlEnumerateDirectoryCallback>> callback, Pointer<NativeType> userdata) bool
Enumerate a directory in a storage container through a callback function.
sdlGetStorageFileSize(Pointer<SdlStorage> storage, String? path, Pointer<Uint64> length) bool
Query the size of a file within a storage container.
sdlGetStoragePathInfo(Pointer<SdlStorage> storage, String? path, Pointer<SdlPathInfo> info) bool
Get information about a filesystem path in a storage container.
sdlGetStorageSpaceRemaining(Pointer<SdlStorage> storage) int
Queries the remaining space in a storage container.
sdlGlobStorageDirectory(Pointer<SdlStorage> storage, String? path, String? pattern, int flags, Pointer<Int32> count) Pointer<Pointer<Int8>>
Enumerate a directory tree, filtered by pattern, and return a list.
sdlOpenFileStorage(String? path) Pointer<SdlStorage>
Opens up a container for local filesystem storage.
sdlOpenStorage(Pointer<SdlStorageInterface> iface, Pointer<NativeType> userdata) Pointer<SdlStorage>
Opens up a container using a client-provided storage interface.
sdlOpenTitleStorage(String? override, int props) Pointer<SdlStorage>
Opens up a read-only container for the application's filesystem.
sdlOpenUserStorage(String? org, String? app, int props) Pointer<SdlStorage>
Opens up a container for a user's unique read/write filesystem.
sdlReadStorageFile(Pointer<SdlStorage> storage, String? path, Pointer<NativeType> destination, int length) bool
Synchronously read a file from a storage container into a client-provided buffer.
sdlRemoveStoragePath(Pointer<SdlStorage> storage, String? path) bool
Remove a file or an empty directory in a writable storage container.
sdlRenameStoragePath(Pointer<SdlStorage> storage, String? oldpath, String? newpath) bool
Rename a file or directory in a writable storage container.
sdlStorageReady(Pointer<SdlStorage> storage) bool
Checks if the storage container is ready to use.
sdlWriteStorageFile(Pointer<SdlStorage> storage, String? path, Pointer<NativeType> source, int length) bool
Synchronously write a file from client memory into a storage container.