From e3408b8307de0551abfacd8565217c01368b69d9 Mon Sep 17 00:00:00 2001 From: Max G Date: Thu, 31 Jan 2019 04:53:28 -0600 Subject: [PATCH] Switch `Reserved` from int to byte[] --- BinaryFormat/BinaryChunk.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BinaryFormat/BinaryChunk.cs b/BinaryFormat/BinaryChunk.cs index 3d5f853..1627430 100644 --- a/BinaryFormat/BinaryChunk.cs +++ b/BinaryFormat/BinaryChunk.cs @@ -13,7 +13,7 @@ namespace Roblox.BinaryFormat public readonly byte[] CompressedData; public readonly int Size; - public readonly int Reserved; + public readonly byte[] Reserved; public readonly byte[] Data; public bool HasCompressedData => (CompressedSize > 0); @@ -41,7 +41,7 @@ namespace Roblox.BinaryFormat CompressedSize = reader.ReadInt32(); Size = reader.ReadInt32(); - Reserved = reader.ReadInt32(); + Reserved = reader.ReadBytes(4); if (HasCompressedData) {