C# 클래스 NVorbis.DataPacket

A single data packet from a logical Vorbis stream.
파일 보기 프로젝트 열기: gregzo/G-Audio 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Done ( ) : void

Indicates that the packet has been read and its data is no longer needed.

PeekByte ( ) : byte

Reads the next byte from the packet. Does not advance the position counter.

Read ( byte buffer, int index, int count ) : int

Reads the specified number of bytes from the packet into the buffer specified and advances the position counter.

ReadBit ( ) : bool

Reads the next bit from the packet and advances the position counter.

ReadBits ( int count ) : ulong

Reads the specified number of bits from the packet and advances the position counter.

ReadByte ( ) : byte

Reads the next byte from the packet and advances the position counter.

ReadBytes ( int count ) : byte[]

Reads the specified number of bytes from the packet and advances the position counter.

ReadInt16 ( ) : short

Retrieves the next 16 bits from the packet as a short and advances the position counter.

ReadInt32 ( ) : int

Retrieves the next 32 bits from the packet as a int and advances the position counter.

ReadInt64 ( ) : long

Retrieves the next 64 bits from the packet as a long and advances the position counter.

ReadUInt16 ( ) : ushort

Retrieves the next 16 bits from the packet as a ushort and advances the position counter.

ReadUInt32 ( ) : uint

Retrieves the next 32 bits from the packet as a uint and advances the position counter.

ReadUInt64 ( ) : ulong

Retrieves the next 64 bits from the packet as a ulong and advances the position counter.

SkipBits ( int count ) : void

Advances the position counter by the specified number of bits.

SkipBytes ( int count ) : void

Advances the position counter by the specified number of bytes.

TryPeekBits ( int count, int &bitsRead ) : ulong

Attempts to read the specified number of bits from the packet, but may return fewer. Does not advance the position counter.

보호된 메소드들

메소드 설명
DataPacket ( int length ) : System

Creates a new instance with the specified length.

GetFlag ( PacketFlags flag ) : bool

Gets the value of the specified flag.

ReadNextByte ( ) : int

Reads the next byte of the packet.

ResetBitReader ( ) : void

Resets the bit reader.

SetFlag ( PacketFlags flag, bool value ) : void

Sets the value of the specified flag.

메소드 상세

DataPacket() 보호된 메소드

Creates a new instance with the specified length.
protected DataPacket ( int length ) : System
length int The length of the packet.
리턴 System

Done() 공개 메소드

Indicates that the packet has been read and its data is no longer needed.
public Done ( ) : void
리턴 void

GetFlag() 보호된 메소드

Gets the value of the specified flag.
protected GetFlag ( PacketFlags flag ) : bool
flag PacketFlags
리턴 bool

PeekByte() 공개 메소드

Reads the next byte from the packet. Does not advance the position counter.
public PeekByte ( ) : byte
리턴 byte

Read() 공개 메소드

Reads the specified number of bytes from the packet into the buffer specified and advances the position counter.
is less than 0 or + is past the end of .
public Read ( byte buffer, int index, int count ) : int
buffer byte The buffer to read into.
index int The index into the buffer to start placing the read data.
count int The number of bytes to read.
리턴 int

ReadBit() 공개 메소드

Reads the next bit from the packet and advances the position counter.
public ReadBit ( ) : bool
리턴 bool

ReadBits() 공개 메소드

Reads the specified number of bits from the packet and advances the position counter.
The number of bits specified is not between 0 and 64.
public ReadBits ( int count ) : ulong
count int The number of bits to read.
리턴 ulong

ReadByte() 공개 메소드

Reads the next byte from the packet and advances the position counter.
public ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 메소드

Reads the specified number of bytes from the packet and advances the position counter.
public ReadBytes ( int count ) : byte[]
count int The number of bytes to read.
리턴 byte[]

ReadInt16() 공개 메소드

Retrieves the next 16 bits from the packet as a short and advances the position counter.
public ReadInt16 ( ) : short
리턴 short

ReadInt32() 공개 메소드

Retrieves the next 32 bits from the packet as a int and advances the position counter.
public ReadInt32 ( ) : int
리턴 int

ReadInt64() 공개 메소드

Retrieves the next 64 bits from the packet as a long and advances the position counter.
public ReadInt64 ( ) : long
리턴 long

ReadNextByte() 보호된 추상적인 메소드

Reads the next byte of the packet.
protected abstract ReadNextByte ( ) : int
리턴 int

ReadUInt16() 공개 메소드

Retrieves the next 16 bits from the packet as a ushort and advances the position counter.
public ReadUInt16 ( ) : ushort
리턴 ushort

ReadUInt32() 공개 메소드

Retrieves the next 32 bits from the packet as a uint and advances the position counter.
public ReadUInt32 ( ) : uint
리턴 uint

ReadUInt64() 공개 메소드

Retrieves the next 64 bits from the packet as a ulong and advances the position counter.
public ReadUInt64 ( ) : ulong
리턴 ulong

ResetBitReader() 보호된 메소드

Resets the bit reader.
protected ResetBitReader ( ) : void
리턴 void

SetFlag() 보호된 메소드

Sets the value of the specified flag.
protected SetFlag ( PacketFlags flag, bool value ) : void
flag PacketFlags
value bool
리턴 void

SkipBits() 공개 메소드

Advances the position counter by the specified number of bits.
public SkipBits ( int count ) : void
count int The number of bits to advance.
리턴 void

SkipBytes() 공개 메소드

Advances the position counter by the specified number of bytes.
public SkipBytes ( int count ) : void
count int The number of bytes to advance.
리턴 void

TryPeekBits() 공개 메소드

Attempts to read the specified number of bits from the packet, but may return fewer. Does not advance the position counter.
is not between 0 and 64.
public TryPeekBits ( int count, int &bitsRead ) : ulong
count int The number of bits to attempt to read.
bitsRead int The number of bits actually read.
리턴 ulong