(BitStream.CacheSize): new property.

returns number of bits currently buffered.
This commit is contained in:
morkt 2015-12-27 18:30:54 +04:00
parent 7ff67b1922
commit da7a5f8898

View File

@ -38,6 +38,7 @@ namespace GameRes.Formats
protected int m_cached_bits = 0; protected int m_cached_bits = 0;
public Stream Input { get { return m_input; } } public Stream Input { get { return m_input; } }
public int CacheSize { get { return m_cached_bits; } }
protected BitStream (Stream file, bool leave_open) protected BitStream (Stream file, bool leave_open)
{ {