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

28 lines
968 B
C#

using BrotliLib.Markers.Types;
using BrotliLib.Serialization.Reader;
namespace BrotliLib.Markers.Serialization.Reader{
class MarkedBitReaderDummy : IMarkedBitReader{
public MarkerRoot MarkerRoot { get; } = new MarkerRoot();
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();
}
}