From 7078e586be2422919cdbd4006f8274147b41c19f Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 28 Dec 2015 10:52:44 +0400 Subject: [PATCH] (IBitStream): new interface. --- ArcFormats/BitStream.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ArcFormats/BitStream.cs b/ArcFormats/BitStream.cs index 7fc6d5d0..ac13c182 100644 --- a/ArcFormats/BitStream.cs +++ b/ArcFormats/BitStream.cs @@ -72,7 +72,14 @@ namespace GameRes.Formats #endregion } - public class MsbBitStream : BitStream + public interface IBitStream + { + int GetBits (int count); + int GetNextBit (); + void Reset (); + } + + public class MsbBitStream : BitStream, IBitStream { public MsbBitStream (Stream file, bool leave_open = false) : base (file, leave_open) @@ -101,7 +108,7 @@ namespace GameRes.Formats } } - public class LsbBitStream : BitStream + public class LsbBitStream : BitStream, IBitStream { public LsbBitStream (Stream file, bool leave_open = false) : base (file, leave_open)