summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/shared_memory.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-19 15:00:32 +0100
committerLioncash <mathew1800@gmail.com>2018-11-19 15:20:29 +0100
commitfb5d4b17de035e3682e64513ae7612f40afd01bd (patch)
treeba3ea9eaad87f32b3844f4de0638df426000fdb9 /src/core/hle/kernel/shared_memory.h
parentkernel/shared_memory: Use 64-bit types for offset and size in CreateForApplet (diff)
downloadyuzu-fb5d4b17de035e3682e64513ae7612f40afd01bd.tar
yuzu-fb5d4b17de035e3682e64513ae7612f40afd01bd.tar.gz
yuzu-fb5d4b17de035e3682e64513ae7612f40afd01bd.tar.bz2
yuzu-fb5d4b17de035e3682e64513ae7612f40afd01bd.tar.lz
yuzu-fb5d4b17de035e3682e64513ae7612f40afd01bd.tar.xz
yuzu-fb5d4b17de035e3682e64513ae7612f40afd01bd.tar.zst
yuzu-fb5d4b17de035e3682e64513ae7612f40afd01bd.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/shared_memory.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/kernel/shared_memory.h b/src/core/hle/kernel/shared_memory.h
index 60433f09b..f3b05e48b 100644
--- a/src/core/hle/kernel/shared_memory.h
+++ b/src/core/hle/kernel/shared_memory.h
@@ -113,10 +113,17 @@ public:
/**
* Gets a pointer to the shared memory block
* @param offset Offset from the start of the shared memory block to get pointer
- * @return Pointer to the shared memory block from the specified offset
+ * @return A pointer to the shared memory block from the specified offset
*/
u8* GetPointer(std::size_t offset = 0);
+ /**
+ * Gets a constant pointer to the shared memory block
+ * @param offset Offset from the start of the shared memory block to get pointer
+ * @return A constant pointer to the shared memory block from the specified offset
+ */
+ const u8* GetPointer(std::size_t offset = 0) const;
+
private:
explicit SharedMemory(KernelCore& kernel);
~SharedMemory() override;