fix: Fixes binary file writer position increment (#1793)
This commit is contained in:
parent
9f1f314077
commit
21347c8b6b
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue