summaryrefslogtreecommitdiff
path: root/src/core/hle/ipc.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-13 21:41:20 -0500
committerGravatar bunnei2018-02-13 23:26:03 -0500
commit1ce6fff0648008b7510e9feb3cf6696a2c25dd5c (patch)
tree879c69e708657d93a3c69717ae989350894ca285 /src/core/hle/ipc.h
parentvi: Fix TransactParcelAuto to support both buffer formats. (diff)
downloadyuzu-1ce6fff0648008b7510e9feb3cf6696a2c25dd5c.tar.gz
yuzu-1ce6fff0648008b7510e9feb3cf6696a2c25dd5c.tar.xz
yuzu-1ce6fff0648008b7510e9feb3cf6696a2c25dd5c.zip
hle_ipc: Add helper functions for reading and writing buffers.
Diffstat (limited to 'src/core/hle/ipc.h')
-rw-r--r--src/core/hle/ipc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/ipc.h b/src/core/hle/ipc.h
index 0dcaede67..a6602e12c 100644
--- a/src/core/hle/ipc.h
+++ b/src/core/hle/ipc.h
@@ -91,6 +91,10 @@ struct BufferDescriptorX {
91 address |= static_cast<VAddr>(address_bits_36_38) << 36; 91 address |= static_cast<VAddr>(address_bits_36_38) << 36;
92 return address; 92 return address;
93 } 93 }
94
95 u64 Size() const {
96 return static_cast<u64>(size);
97 }
94}; 98};
95static_assert(sizeof(BufferDescriptorX) == 8, "BufferDescriptorX size is incorrect"); 99static_assert(sizeof(BufferDescriptorX) == 8, "BufferDescriptorX size is incorrect");
96 100