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-06-18 07:15:22 +02:00
|
|
|
|
|
2019-11-22 05:44:02 +01:00
|
|
|
|
namespace BrotliLib.Markers.Serialization.Reader{
|
2019-06-18 07:15:22 +02:00
|
|
|
|
class MarkedBitReaderDummy : IMarkedBitReader{
|
2019-11-25 18:47:45 +01:00
|
|
|
|
public MarkerLevel MarkerLevel => MarkerLevel.None;
|
2019-06-18 07:15:22 +02:00
|
|
|
|
|
|
|
|
|
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){}
|
2019-06-18 07:15:22 +02:00
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|