fix: Fixes infinite loop in BinaryFileWriter (#1792)
### Summary - Fixes infinite loop with binary file writer - Removes extra buffer copying with binary file writer - Removes storing type counts during world save file writing - Fixes display cache self-deletion warning during world load
This commit is contained in:
parent
0011db7f47
commit
9f1f314077
6 changed files with 50 additions and 25 deletions
|
|
@ -122,7 +122,11 @@ public class BufferWriter : IGenericWriter
|
|||
}
|
||||
}
|
||||
|
||||
public void Write(ReadOnlySpan<byte> bytes)
|
||||
public virtual void Write(byte[] bytes) => Write(bytes.AsSpan());
|
||||
|
||||
public virtual void Write(byte[] bytes, int offset, int count) => Write(bytes.AsSpan(offset, count));
|
||||
|
||||
public virtual void Write(ReadOnlySpan<byte> bytes)
|
||||
{
|
||||
var length = bytes.Length;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue