Table of Contents

Class BitStream

Namespace
VAST.Common
Assembly
VAST.Common.dll

Provides an abstract base class for streams that support bit-level operations.

public abstract class BitStream : Stream, IDisposable, IAsyncDisposable
Inheritance
BitStream
Implements
Derived
Inherited Members

Constructors

BitStream()

protected BitStream()

Properties

BitPosition

Gets or sets the current bit position within the current byte.

public abstract int BitPosition { get; set; }

Property Value

int

Methods

PeekByte()

Reads the next byte from the stream without advancing the position.

public abstract int PeekByte()

Returns

int

The next byte in the stream, or -1 if at the end of the stream.

SeekBits(long, SeekOrigin)

Sets the bit position within the stream.

public abstract long SeekBits(long offset, SeekOrigin origin)

Parameters

offset long

The bit offset relative to the origin.

origin SeekOrigin

A value indicating the reference point used to obtain the new position.

Returns

long

The new bit position within the stream.