C# 클래스 System.Xml.BitStack

Manages a stack of bits. Exposes push, pop, and peek operations.
파일 보기 프로젝트 열기: gbarnett/shared-source-cli-2.0 1 사용 예제들

공개 메소드들

메소드 설명
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