1
0
mirror of https://github.com/chylex/Brotli-Builder.git synced 2025-01-07 08:42:51 +01:00
Brotli-Builder/BrotliLib/Markers/Serialization/Reader/MarkedBitReaderDummy.cs

27 lines
902 B
C#
Raw Normal View History

2019-11-23 18:53:01 +01:00
using BrotliLib.Markers.Types;
2019-11-22 05:44:02 +01:00
using BrotliLib.Serialization.Reader;
2019-11-22 05:44:02 +01:00
namespace BrotliLib.Markers.Serialization.Reader{
class MarkedBitReaderDummy : IMarkedBitReader{
public MarkerLevel MarkerLevel => MarkerLevel.None;
private readonly IBitReader wrapped;
public MarkedBitReaderDummy(IBitReader wrapped){
this.wrapped = wrapped;
}
public void MarkStart(){}
2019-11-23 18:53:01 +01:00
public void MarkEnd(IMarkerInfo info){}
public void MarkEndTitle(string title){}
public void MarkEndValue(string name, object value){}
public int Index => wrapped.Index;
public bool NextBit() => wrapped.NextBit();
public int NextChunk(int bits) => wrapped.NextChunk(bits);
public void AlignToByteBoundary() => wrapped.AlignToByteBoundary();
public byte NextAlignedByte() => wrapped.NextAlignedByte();
}
}