JpegBitReader

Ecng.Drawing

Reads buffered entropy-coded bits, undoing byte stuffing without reading past scan or restart markers.

プロパティ

Position
public int Position { get; }
value = jpegBitReader.Position

Offset of the first byte that has not been consumed.

メソッド

ReadSigned
public int ReadSigned(int size)
result = jpegBitReader.ReadSigned(size)

Reads a value of the given magnitude category: the upper half of the range is positive, the lower half negative.

Restart
public void Restart(int index)
jpegBitReader.Restart(index)

Steps over the restart marker that ends an interval, dropping the bits that pad the last byte before it.

index
Number of the interval that has ended, counted from zero.
TryPeek
public bool TryPeek(int count, int value)
result = jpegBitReader.TryPeek(count, value)

Looks ahead without consuming bits or crossing an entropy segment's closing marker.