fix: Fixes binary file writer position increment (#1793)

This commit is contained in:
Kamron Batman 2024-05-24 16:59:24 -07:00 committed by GitHub
parent 9f1f314077
commit 21347c8b6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,6 +63,7 @@ public class BinaryFileWriter : BufferWriter, IDisposable
}
_file.Write(bytes, offset, count);
_position += count;
}
public override void Write(ReadOnlySpan<byte> bytes)
@ -73,6 +74,7 @@ public class BinaryFileWriter : BufferWriter, IDisposable
}
_file.Write(bytes);
_position += bytes.Length;
}
public override void Close()