C# Класс System.Xml.BitStack

Manages a stack of bits. Exposes push, pop, and peek operations.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BitStack ( ) : System

Initialize stack.

PeekBit ( ) : bool

Return the top bit on the stack without pushing or popping.

PopBit ( ) : bool

Pop the top bit from the stack and return it.

PushBit ( bool bit ) : void

Push a 0 or 1 bit onto the stack.

Приватные методы

Метод Описание
PopCurr ( ) : void

If all bits have been popped from this.curr, then pop the previous uint value from the stack in order to provide another 31 bits.

PushCurr ( ) : void

this.curr has enough space for 31 bits (minus 1 for sentinel bit). Once this space is exhausted, a uint stack is created to handle the overflow.

Описание методов

BitStack() публичный Метод

Initialize stack.
public BitStack ( ) : System
Результат System

PeekBit() публичный Метод

Return the top bit on the stack without pushing or popping.
public PeekBit ( ) : bool
Результат bool

PopBit() публичный Метод

Pop the top bit from the stack and return it.
public PopBit ( ) : bool
Результат bool

PushBit() публичный Метод

Push a 0 or 1 bit onto the stack.
public PushBit ( bool bit ) : void
bit bool
Результат void