public static int NextChunk(this IMarkedBitReader reader, int bits, string name) { reader.MarkStart(); int result = reader.NextChunk(bits); reader.MarkEndValue(name, result); return(result); }
public static byte NextAlignedByte(this IMarkedBitReader reader, string name) { reader.MarkStart(); byte result = reader.NextAlignedByte(); reader.MarkEndValue(name, new Literal(result)); return(result); }
// Marking overloads public static bool NextBit(this IMarkedBitReader reader, string name) { reader.MarkStart(); bool result = reader.NextBit(); reader.MarkEndValue(name, result); return(result); }