Table of Contents

Struct BitSequenceReader

Namespace
ZeroC.Slice
Assembly
ZeroC.Slice.dll

Provides a method for reading a bit sequence.

public ref struct BitSequenceReader
Inherited Members

Remarks

This struct is typically returned by GetBitSequenceReader(int) to read the bit sequence associated with a Slice type.

Constructors

BitSequenceReader(ReadOnlySequence<byte>)

Constructs a bit sequence reader over a ReadOnlySequence<T>.

public BitSequenceReader(ReadOnlySequence<byte> bitSequence)

Parameters

bitSequence ReadOnlySequence<byte>

The read-only sequence.

Methods

Read()

Reads the next bit.

public bool Read()

Returns

bool

true when the next bit is set; otherwise, false.

See Also