ReXGlue SDK
Loading...
Searching...
No Matches
memory_view.h File Reference
#include <cstddef>
#include <cstring>
#include <optional>
#include <string_view>
#include <type_traits>
#include <rex/kernel/heap.h>
#include <rex/types.h>
#include <rex/assert.h>
#include <rex/kernel/thread_state.h>

Go to the source code of this file.

Classes

class  rex::kernel::MemoryView
struct  rex::kernel::GuestGlobal< T, Address >

Namespaces

namespace  rex
namespace  rex::kernel

Macros

#define REX_GUEST_GLOBAL(type, name, address)

Detailed Description

License
BSD 3-Clause License See LICENSE file in the project root for full license text.

Macro Definition Documentation

◆ REX_GUEST_GLOBAL

#define REX_GUEST_GLOBAL ( type,
name,
address )
Value:
Definition memory_view.h:201

Declares a global the title keeps at a fixed guest address, at namespace scope. A type with a comma needs an alias first.

Parameters
addressThe guest address, a nonzero literal aligned for the type.
REX_GUEST_GLOBAL(be_u32, kFrameCount, 0x82001234);
u32 frames = *kFrameCount.GetHost();
#define REX_GUEST_GLOBAL(type, name, address)
Definition memory_view.h:261