1
0
mirror of https://github.com/chylex/Brotli-Builder.git synced 2024-11-24 22:42:50 +01:00
Brotli-Builder/BrotliLib/Markers/Serialization/Reader/MarkedBitReaderDummy.cs

27 lines
902 B
C#

using BrotliLib.Markers.Types;
using BrotliLib.Serialization.Reader;
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(){}
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();
}
}