Why not a nice Span.

This commit is contained in:
LDj3SNuD 2021-02-09 17:00:09 +01:00
parent 5697d047fb
commit 18f576f49d

View file

@ -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);