diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-25 13:42:32 -0500 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-25 17:04:02 -0500 |
| commit | 7ffd62424804eceb73f01b1c4e8dc216134c8295 (patch) | |
| tree | 2bfe2a9b5d0a3f0857c73475cbdf24f6fe66c740 /src/core/hle/service/nfp/nfp_user.cpp | |
| parent | fbc375f0de26342a22c52bb78e14b4f78d2243c1 (diff) | |
service: Use ReadBufferSpan where it is trivial to do so
Diffstat (limited to 'src/core/hle/service/nfp/nfp_user.cpp')
| -rw-r--r-- | src/core/hle/service/nfp/nfp_user.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/nfp/nfp_user.cpp b/src/core/hle/service/nfp/nfp_user.cpp index a4d3d1bc7..0a5606756 100644 --- a/src/core/hle/service/nfp/nfp_user.cpp +++ b/src/core/hle/service/nfp/nfp_user.cpp @@ -290,7 +290,7 @@ void IUser::GetApplicationArea(Kernel::HLERequestContext& ctx) { void IUser::SetApplicationArea(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const auto device_handle{rp.Pop<u64>()}; - const auto data{ctx.ReadBuffer()}; + const auto data{ctx.ReadBufferSpan()}; LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}", device_handle, data.size()); if (state == State::NonInitialized) { @@ -370,7 +370,7 @@ void IUser::CreateApplicationArea(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const auto device_handle{rp.Pop<u64>()}; const auto access_id{rp.Pop<u32>()}; - const auto data{ctx.ReadBuffer()}; + const auto data{ctx.ReadBufferSpan()}; LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}, access_id={}", device_handle, access_id, data.size()); @@ -637,7 +637,7 @@ void IUser::RecreateApplicationArea(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const auto device_handle{rp.Pop<u64>()}; const auto access_id{rp.Pop<u32>()}; - const auto data{ctx.ReadBuffer()}; + const auto data{ctx.ReadBufferSpan()}; LOG_INFO(Service_NFP, "called, device_handle={}, data_size={}, access_id={}", device_handle, access_id, data.size()); |
