summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/hle_ipc.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-17 04:02:08 +0200
committerLioncash <mathew1800@gmail.com>2020-04-17 04:02:10 +0200
commit77356731a9554c4c9e57d0abeda53a97908475cd (patch)
tree915eb415fccd3d85d8a9f582bc3167715d501779 /src/core/hle/kernel/hle_ipc.h
parentMerge pull request #3673 from lioncash/extra (diff)
downloadyuzu-77356731a9554c4c9e57d0abeda53a97908475cd.tar
yuzu-77356731a9554c4c9e57d0abeda53a97908475cd.tar.gz
yuzu-77356731a9554c4c9e57d0abeda53a97908475cd.tar.bz2
yuzu-77356731a9554c4c9e57d0abeda53a97908475cd.tar.lz
yuzu-77356731a9554c4c9e57d0abeda53a97908475cd.tar.xz
yuzu-77356731a9554c4c9e57d0abeda53a97908475cd.tar.zst
yuzu-77356731a9554c4c9e57d0abeda53a97908475cd.zip
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.h')
-rw-r--r--src/core/hle/kernel/hle_ipc.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index 050ad8fd7..af3330297 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -179,10 +179,11 @@ public:
}
/// Helper function to read a buffer using the appropriate buffer descriptor
- std::vector<u8> ReadBuffer(int buffer_index = 0) const;
+ std::vector<u8> ReadBuffer(std::size_t buffer_index = 0) const;
/// Helper function to write a buffer using the appropriate buffer descriptor
- std::size_t WriteBuffer(const void* buffer, std::size_t size, int buffer_index = 0) const;
+ std::size_t WriteBuffer(const void* buffer, std::size_t size,
+ std::size_t buffer_index = 0) const;
/* Helper function to write a buffer using the appropriate buffer descriptor
*
@@ -194,7 +195,8 @@ public:
*/
template <typename ContiguousContainer,
typename = std::enable_if_t<!std::is_pointer_v<ContiguousContainer>>>
- std::size_t WriteBuffer(const ContiguousContainer& container, int buffer_index = 0) const {
+ std::size_t WriteBuffer(const ContiguousContainer& container,
+ std::size_t buffer_index = 0) const {
using ContiguousType = typename ContiguousContainer::value_type;
static_assert(std::is_trivially_copyable_v<ContiguousType>,
@@ -205,10 +207,10 @@ public:
}
/// Helper function to get the size of the input buffer
- std::size_t GetReadBufferSize(int buffer_index = 0) const;
+ std::size_t GetReadBufferSize(std::size_t buffer_index = 0) const;
/// Helper function to get the size of the output buffer
- std::size_t GetWriteBufferSize(int buffer_index = 0) const;
+ std::size_t GetWriteBufferSize(std::size_t buffer_index = 0) const;
template <typename T>
std::shared_ptr<T> GetCopyObject(std::size_t index) {