fix(core): Serialization issues (#350)

- [X] Fixes IPAddresses not having enough space
- [X] Streamlines some code
- [X] Fixes base escortables to not load destination tables in a dangerous way.
- [X] Fixes some bad assumptions about resizing buffers
- [X] Fixes little endian issue with circular buffer writer

This doesn't seem to address #349. That issue requires more investigation because I am not seeing where the issue would be.

Closes #347
Closes #322
This commit is contained in:
Kamron Batman 2020-12-13 13:15:48 -08:00 • committed by GitHub
parent 3acb1414dd
commit e17413af21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 186 additions and 222 deletions

View file

@ -39,7 +39,6 @@ namespace Server
void Write(double value);
void Write(float value);
void Write(byte value);
void Write(byte[] value, int length);
void Write(sbyte value);
void Write(bool value);
void WriteEncodedInt(int value);
@ -82,6 +81,7 @@ namespace Server
void Write(HashSet<BaseGuild> list, bool tidy);
void WriteGuildSet<T>(HashSet<T> set) where T : BaseGuild;
void WriteGuildSet<T>(HashSet<T> set, bool tidy) where T : BaseGuild;
void Write(ReadOnlySpan<byte> bytes);
long Seek(long offset, SeekOrigin origin);
}