|
ReXGlue SDK
|
#include <rex/filesystem/stfs.h>
Public Member Functions | |
| virtual ContainerType | GetType () const =0 |
| virtual const XContentPackageHeader * | GetHeader () const =0 |
| virtual const std::filesystem::path & | GetPath () const =0 |
| virtual u64 | GetTotalSize () const =0 |
| virtual std::span< const ContainerNode > | GetNodes () const =0 |
| virtual const ContainerNode & | GetRoot () const =0 |
| virtual const ContainerNode * | Find (std::string_view path) const =0 |
| virtual std::string | GetNodePath (const ContainerNode &node) const =0 |
| virtual Result< size_t > | Read (const ContainerNode &node, u64 offset, std::span< u8 > buffer) const =0 |
| virtual std::span< const u8 > | View (const ContainerNode &node) const =0 |
| virtual Result< void > | Extract (const std::filesystem::path &destination) const =0 |
A mapped and parsed container image. Open one with IFileSystemFactory.
|
nodiscardpure virtual |
Writes every node under a host folder, removing the output when a step fails.
| destination | The host folder, created when missing. |
|
nodiscardpure virtual |
Returns the node at a path, or null when absent.
| path | Case insensitive, split on backslash or slash, empty for the root. |
|
nodiscardpure virtual |
|
nodiscardpure virtual |
|
nodiscardpure virtual |
|
nodiscardpure virtual |
Returns the size of all data files together.
|
nodiscardpure virtual |
Copies bytes of a file node.
| offset | Byte offset in the file. |
|
nodiscardpure virtual |
Returns the bytes of a file node without a copy, empty when the file is not one extent.