From 18f576f49df4361203e69ea69507534ee0ae69a0 Mon Sep 17 00:00:00 2001 From: LDj3SNuD Date: Tue, 9 Feb 2021 17:00:09 +0100 Subject: [PATCH] Why not a nice Span. --- ARMeilleure/Translation/PTC/Ptc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ARMeilleure/Translation/PTC/Ptc.cs b/ARMeilleure/Translation/PTC/Ptc.cs index c3e8b08c8..ec98fb018 100644 --- a/ARMeilleure/Translation/PTC/Ptc.cs +++ b/ARMeilleure/Translation/PTC/Ptc.cs @@ -865,7 +865,7 @@ namespace ARMeilleure.Translation.PTC _infosWriter.Write((int)ptcInfo.RelocEntriesCount); // InfoEntry.RelocEntriesCount // WriteCode. - _codesStream.Write(ptcInfo.Code, 0, ptcInfo.Code.Length); + _codesStream.Write(ptcInfo.Code.AsSpan()); // WriteReloc. ptcInfo.RelocStream.WriteTo(_relocsStream);