service: Use ReadBufferSpan where it is trivial to do so

This commit is contained in:
ameerj
2022-12-25 13:42:32 -05:00
parent fbc375f0de
commit 7ffd624248
31 changed files with 78 additions and 77 deletions

View File

@ -24,7 +24,7 @@ public:
private:
void Match(Kernel::HLERequestContext& ctx) {
const auto buffer = ctx.ReadBuffer();
const auto buffer = ctx.ReadBufferSpan();
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(buffer.data()), buffer.size());
@ -37,7 +37,7 @@ private:
}
void Filter(Kernel::HLERequestContext& ctx) {
const auto buffer = ctx.ReadBuffer();
const auto buffer = ctx.ReadBufferSpan();
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(buffer.data()), buffer.size());