fix(core): Fixes generic persistence not deserializing (#575)
This commit is contained in:
parent
0d7ec99cbe
commit
16c62f36b5
1 changed files with 3 additions and 2 deletions
|
|
@ -66,8 +66,9 @@ namespace Server
|
|||
try
|
||||
{
|
||||
using FileStream bin = new FileStream(binPath, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||
var br = new BufferReader(GC.AllocateUninitializedArray<byte>((int)bin.Length));
|
||||
deserializer(br);
|
||||
var buffer = GC.AllocateUninitializedArray<byte>((int)bin.Length);
|
||||
bin.Read(buffer);
|
||||
deserializer(new BufferReader(buffer));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue