|
ReXGlue SDK
|
#include <rex/kernel/types/memory.h>
Public Member Functions | |
| size_t | size () const |
| bool | empty () const |
| const T * | begin () const |
| const T * | end () const |
| const T * | begin (const rex::kernel::MemoryView &view) const |
| const T * | end (const rex::kernel::MemoryView &view) const |
| const T & | operator[] (size_t index) const |
| u32 | GetAddress (size_t index) const |
| const T * | TryAt (size_t index, const rex::kernel::MemoryView &view) const |
| std::optional< T > | TryGet (size_t index, const rex::kernel::MemoryView &view) const |
| const T * | TryAt (size_t index) const |
Public Attributes | |
| be_ptr< T > | first |
| be_ptr< T > | last |
| be_ptr< T > | limit |
Read only view of a guest std::vector, three guest pointers in the release build layout. The title owns the storage. A vector with an allocator or a debug member is not supported.
| T | The element type, laid out as the title stores it. |
|
inline |
Resolves the first element through the guest memory of the calling thread.
|
inline |
Resolves the first element through a memory view, for a host thread with no bound runtime.
|
inline |
Resolves one past the last element through the guest memory of the calling thread.
|
inline |
Resolves one past the last element through a memory view, for a host thread with no bound runtime.
|
inline |
Returns the guest address of an element, 0 when the index is not below size().
|
inline |
Returns an element through the guest memory of the calling thread without checking the index.
| index | The element index, below size(). |
|
inline |
|
inline |
Resolves an element through the guest memory of the calling thread only when the title could read all of it.
|
inline |
Resolves an element through a memory view only when the title could read all of it, for a host thread with no bound runtime.
|
inline |
Reads a numeric element through a memory view only when the title could read all of it.
| index | The element index. |
| view | The memory view to read through. |
| be_ptr<T> rex::kernel::GuestVector< T >::first |
Guest address of the first element.
| be_ptr<T> rex::kernel::GuestVector< T >::last |
Guest address one past the last element.
| be_ptr<T> rex::kernel::GuestVector< T >::limit |
Guest address one past the allocated storage.