C# 클래스 zxingwp7.common.BitSource

This provides an easy abstraction to read bits at a time from a sequence of bytes, where the number of bits read is not often a multiple of 8.

This class is thread-safe but not reentrant. Unless the caller modifies the bytes array it passed in, in which case all bets are off.

파일 보기 프로젝트 열기: henningms/zxing2.0-wp7 1 사용 예제들

공개 메소드들

메소드 설명
BitSource ( sbyte bytes ) : System
available ( ) : int
readBits ( int numBits ) : int

메소드 상세

BitSource() 공개 메소드

public BitSource ( sbyte bytes ) : System
bytes sbyte bytes from which this will read bits. Bits will be read from the first byte first. /// Bits are read within a byte from most-significant to least-significant bit. ///
리턴 System

available() 공개 메소드

public available ( ) : int
리턴 int

readBits() 공개 메소드

public readBits ( int numBits ) : int
numBits int number of bits to read ///
리턴 int