C# 클래스 System.IO.BitSplitter

Splits a byte array into values, based on a series of bit lengths Translations are done from network byte order.
파일 보기 프로젝트 열기: i-e-b/HLS---Smooth-Encoder 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
offset long
src byte[]

공개 메소드들

메소드 설명
AlignToByte ( ) : void

Move to the next byte edge (no action if already on one -- moves between 0 and 7 bits)

BitSplitter ( byte RawData ) : System
GetFlag ( ) : bool

Read a single bit, and return true if set to '1'. Advances position by 1 bit

GetInteger ( int BitLength ) : ulong

Return an unsigned long for the integer bits

RemainingBytes ( ) : byte[]

Return a new array containing all remaining whole bytes not consumed.

SkipBits ( int BitCount ) : void

Move forward a given number of bits. They are consumed but not processed.

SkipBytes ( int ByteCount ) : void

Move forward a given number of bytes. They are consumed but not processed.

SkipToNextByte ( ) : void

Move forward to next byte edge (moves between 1 and 8 bits)

보호된 메소드들

메소드 설명
GetNext ( int l ) : byte[]

Get an unshifted array of bits packed in bytes. Advances position counter.

Mask ( int start, int length ) : byte[]

Create a byte mask

메소드 상세

AlignToByte() 공개 메소드

Move to the next byte edge (no action if already on one -- moves between 0 and 7 bits)
public AlignToByte ( ) : void
리턴 void

BitSplitter() 공개 메소드

public BitSplitter ( byte RawData ) : System
RawData byte
리턴 System

GetFlag() 공개 메소드

Read a single bit, and return true if set to '1'. Advances position by 1 bit
public GetFlag ( ) : bool
리턴 bool

GetInteger() 공개 메소드

Return an unsigned long for the integer bits
public GetInteger ( int BitLength ) : ulong
BitLength int
리턴 ulong

GetNext() 보호된 메소드

Get an unshifted array of bits packed in bytes. Advances position counter.
protected GetNext ( int l ) : byte[]
l int
리턴 byte[]

Mask() 보호된 메소드

Create a byte mask
protected Mask ( int start, int length ) : byte[]
start int number of bits skipped
length int run length (bits)
리턴 byte[]

RemainingBytes() 공개 메소드

Return a new array containing all remaining whole bytes not consumed.
public RemainingBytes ( ) : byte[]
리턴 byte[]

SkipBits() 공개 메소드

Move forward a given number of bits. They are consumed but not processed.
public SkipBits ( int BitCount ) : void
BitCount int
리턴 void

SkipBytes() 공개 메소드

Move forward a given number of bytes. They are consumed but not processed.
public SkipBytes ( int ByteCount ) : void
ByteCount int
리턴 void

SkipToNextByte() 공개 메소드

Move forward to next byte edge (moves between 1 and 8 bits)
public SkipToNextByte ( ) : void
리턴 void

프로퍼티 상세

offset 보호되어 있는 프로퍼티

protected long offset
리턴 long

src 보호되어 있는 프로퍼티

protected byte[] src
리턴 byte[]