Introduce Custom Span Class + IPC Buffer -> Span

This commit is contained in:
◱ PixelyIon
2020-09-25 05:35:12 +05:30
committed by ◱ PixelyIon
parent 4d6ae9aa26
commit 20559c5dca
55 changed files with 352 additions and 365 deletions

View File

@ -111,7 +111,7 @@ namespace skyline {
* @tparam T The type of span to read into
*/
template<typename T>
void Read(std::span<T> destination, u64 address) const {
void Read(span<T> destination, u64 address) const {
Read(reinterpret_cast<u8 *>(destination.data()), address, destination.size_bytes());
}
@ -132,7 +132,7 @@ namespace skyline {
* @brief Writes out a span to a region of the GPU virtual address space
*/
template<typename T>
void Write(std::span<T> source, u64 address) const {
void Write(span<T> source, u64 address) const {
Write(reinterpret_cast<u8 *>(source.data()), address, source.size_bytes());
}