mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2024-11-24 22:42:50 +01:00
17 lines
520 B
C#
17 lines
520 B
C#
using BrotliLib.Markers.Serialization.Reader;
|
|
using BrotliLib.Serialization;
|
|
|
|
namespace BrotliLib.Markers{
|
|
public enum MarkerLevel{
|
|
None,
|
|
Simple,
|
|
Verbose
|
|
}
|
|
|
|
internal static class MarkerLevels{
|
|
public static IMarkedBitReader CreateBitReader(this MarkerLevel markerLevel, BitStream bits){
|
|
return markerLevel != MarkerLevel.None ? new MarkedBitReader(bits.GetReader(), markerLevel) : (IMarkedBitReader)new MarkedBitReaderDummy(bits.GetReader());
|
|
}
|
|
}
|
|
}
|