mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-26 07:08:54 -05:00
service: Use ReadBufferSpan where it is trivial to do so
This commit is contained in:
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user