From 21c88e184dc13e096bdbd808a44ba8241314a433 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 27 Aug 2015 03:07:38 +0400 Subject: [PATCH] (Reset): new public method. --- ArcFormats/BitStream.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArcFormats/BitStream.cs b/ArcFormats/BitStream.cs index 89ea0d3a..a65cde94 100644 --- a/ArcFormats/BitStream.cs +++ b/ArcFormats/BitStream.cs @@ -45,6 +45,11 @@ namespace GameRes.Formats int m_bits = 0; int m_cached_bits = 0; + public void Reset () + { + m_cached_bits = 0; + } + public int GetNextBit () { return GetBits (1);