ModernUO/Projects/Server/Serialization
Kamron Batman c2143584bc
fix(core): Fixes BufferWriter Seek and removes World.SaveBuffers (#359)
- [X] Fixes an issue in BufferWriter where if SeekOrigin.End is used, it will yield the wrong index.
- [X] Changes BinaryFileWriter to dispose pattern
- [X] Removes World.SaveBuffers. They were dangerous and should be done in-line while the world is loading, even if it is slower
- [X] Fixes BufferReader Seek too
- [X] Changes BufferWriter to use uninitialized arrays to speed up resizing
- [X] Changes World loading so it doesn't buffer the whole file, even if it makes things slower. It lowers allocations/fragmentation over all which is good.
- [X] Changes World Loading to use uninitialized arrays and directly saves them to the SaveBuffer which eliminates having to open/load the files _again_ which is dangerous. Also looping through items while the world is running is dangerous since async references can and will cause exceptions.

Bumps release version
2020-12-24 14:21:17 -08:00
..
BinaryFileWriter.cs fix(core): Fixes BufferWriter Seek and removes World.SaveBuffers (#359) 2020-12-24 14:21:17 -08:00
BufferReader.cs fix(core): Fixes BufferWriter Seek and removes World.SaveBuffers (#359) 2020-12-24 14:21:17 -08:00
BufferWriter.cs fix(core): Fixes BufferWriter Seek and removes World.SaveBuffers (#359) 2020-12-24 14:21:17 -08:00
IGenericReader.cs fix(core): Fixes several serialization issues (#355) 2020-12-23 07:11:41 -08:00
IGenericWriter.cs fix(core): Fixes several serialization issues (#355) 2020-12-23 07:11:41 -08:00
ISerializable.cs fix(core): Fixes several serialization issues (#355) 2020-12-23 07:11:41 -08:00