diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-25 20:31:53 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-29 00:46:54 +0100 |
commit | a1490d77ace26ec01a60541239d9a8524b88fcec (patch) | |
tree | 8da577293325c3f585a4d031288339885ca26a65 /src/core/hle/kernel | |
parent | hle_ipc: Rename ReadBuffer to ReadBufferCopy (diff) | |
download | yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.gz yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.bz2 yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.lz yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.xz yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.tar.zst yuzu-a1490d77ace26ec01a60541239d9a8524b88fcec.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp index 36cf750de..f6654f56c 100644 --- a/src/core/hle/kernel/hle_ipc.cpp +++ b/src/core/hle/kernel/hle_ipc.cpp @@ -345,7 +345,7 @@ std::vector<u8> HLERequestContext::ReadBufferCopy(std::size_t buffer_index) cons } } -std::span<const u8> HLERequestContext::ReadBufferSpan(std::size_t buffer_index) const { +std::span<const u8> HLERequestContext::ReadBuffer(std::size_t buffer_index) const { const bool is_buffer_a{BufferDescriptorA().size() > buffer_index && BufferDescriptorA()[buffer_index].Size()}; if (is_buffer_a) { diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index 27f9628c7..5bf4f171b 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -271,12 +271,12 @@ public: return domain_message_header.has_value(); } + /// 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; + /// Helper function to read a copy of a buffer using the appropriate buffer descriptor [[nodiscard]] std::vector<u8> ReadBufferCopy(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> ReadBufferSpan(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, std::size_t buffer_index = 0) const; |