|
ReXGlue SDK
|
#include <rex/kernel/object/file_object.h>
Public Member Functions | |
| virtual X_STATUS | Read (u32 buffer_address, u32 buffer_length, u64 byte_offset, u32 *out_bytes_read, u32 apc_context, bool notify_completion=true)=0 |
| virtual X_STATUS | Write (u32 buffer_address, u32 buffer_length, u64 byte_offset, u32 *out_bytes_written, u32 apc_context)=0 |
| virtual u64 | Seek (i64 distance, SeekOrigin origin)=0 |
| virtual X_STATUS | SetLengthToPosition ()=0 |
| virtual void | SetFindPattern (std::string_view pattern)=0 |
| virtual std::optional< filesystem::FileStat > | FindNext ()=0 |
| virtual u64 | GetSize ()=0 |
| virtual std::string | GetAbsolutePath ()=0 |
Interface XAM uses to operate on an open file or directory.
|
pure virtual |
Implemented in rex::kernel::FileObject.
|
pure virtual |
Reads into guest memory and notifies the IO completion ports of the file.
| byte_offset | The file offset, or the maximum value to read at the current position. |
| out_bytes_read | Receives the bytes read, may be null. |
| apc_context | The context reported to the completion ports. |
| notify_completion | False to skip the completion ports and the async event. |
Implemented in rex::kernel::FileObject.
|
pure virtual |
Moves the position of the file.
| distance | The signed byte distance. |
| origin | The origin the distance is measured from. |
Implemented in rex::kernel::FileObject.
|
pure virtual |
Starts a directory listing.
| pattern | The pattern to match, empty for every entry. |
Implemented in rex::kernel::FileObject.
|
pure virtual |
Sets the length of the file to the current position.
Implemented in rex::kernel::FileObject.
|
pure virtual |
Writes from guest memory and notifies the IO completion ports of the file.
| byte_offset | The file offset, or the maximum value to write at the current position. |
| out_bytes_written | Receives the bytes written, may be null. |
| apc_context | The context reported to the completion ports. |
Implemented in rex::kernel::FileObject.