mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(IBitStream): new interface.
This commit is contained in:
parent
808e737576
commit
7078e586be
@ -72,7 +72,14 @@ namespace GameRes.Formats
|
|||||||
#endregion
|
#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)
|
public MsbBitStream (Stream file, bool leave_open = false)
|
||||||
: base (file, leave_open)
|
: 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)
|
public LsbBitStream (Stream file, bool leave_open = false)
|
||||||
: base (file, leave_open)
|
: base (file, leave_open)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user