summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hle_ipc.h
diff options
context:
space:
mode:
authorFranco M <francomaro@gmail.com>2023-10-21 07:25:27 +0200
committerGitHub <noreply@github.com>2023-10-21 07:25:27 +0200
commitb76a1d987ff83b831a19a0c19f9fcd96c504c077 (patch)
tree4b08482cc3d34e341d7d8620182854c248f899b5 /src/core/hle/service/hle_ipc.h
parentReverted dirty code in main. (diff)
parentMerge pull request #11748 from liamwhite/kern_1700 (diff)
downloadyuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.gz
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.bz2
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.lz
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.xz
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.tar.zst
yuzu-b76a1d987ff83b831a19a0c19f9fcd96c504c077.zip
Diffstat (limited to 'src/core/hle/service/hle_ipc.h')
-rw-r--r--src/core/hle/service/hle_ipc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/hle_ipc.h b/src/core/hle/service/hle_ipc.h
index 4bd24c899..ad5259a5c 100644
--- a/src/core/hle/service/hle_ipc.h
+++ b/src/core/hle/service/hle_ipc.h
@@ -253,6 +253,12 @@ public:
return domain_message_header.has_value();
}
+ /// Helper function to get a span of a buffer using the buffer descriptor A
+ [[nodiscard]] std::span<const u8> ReadBufferA(std::size_t buffer_index = 0) const;
+
+ /// Helper function to get a span of a buffer using the buffer descriptor X
+ [[nodiscard]] std::span<const u8> ReadBufferX(std::size_t buffer_index = 0) const;
+
/// Helper function to get a span of a buffer using the appropriate buffer descriptor
[[nodiscard]] std::span<const u8> ReadBuffer(std::size_t buffer_index = 0) const;