C# Class javazoom.jl.decoder.CircularByteBuffer

显示文件 Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
CircularByteBuffer ( CircularByteBuffer cdb ) : System

Initialize by copying the CircularByteBuffer passed in

CircularByteBuffer ( int size ) : System
Copy ( ) : CircularByteBuffer
GetRange ( int str, int stp ) : byte[]

Returns a range (in terms of Offsets) in an int array in chronological (oldest-to-newest) order. e.g. (3, 0) returns the last four ints pushed, with result[3] being the most recent.

Peek ( ) : byte

Returns what would fall out of the buffer on a Push. NOT the same as what you'd get with a Pop().

Pop ( ) : byte

Pop an integer off the start of the buffer. Throws an exception if the buffer is empty (NumValid == 0)

Push ( byte newValue ) : byte

Push a byte into the buffer. Returns the value of whatever comes off.

Reset ( ) : void
ToString ( ) : String
this ( int index ) : byte

e.g. Offset[0] is the current value

Private Methods

Method Description
InternalGet ( int offset ) : byte
InternalSet ( int offset, byte valueToSet ) : void

Method Details

CircularByteBuffer() public method

Initialize by copying the CircularByteBuffer passed in
public CircularByteBuffer ( CircularByteBuffer cdb ) : System
cdb CircularByteBuffer
return System

CircularByteBuffer() public method

public CircularByteBuffer ( int size ) : System
size int
return System

Copy() public method

public Copy ( ) : CircularByteBuffer
return CircularByteBuffer

GetRange() public method

Returns a range (in terms of Offsets) in an int array in chronological (oldest-to-newest) order. e.g. (3, 0) returns the last four ints pushed, with result[3] being the most recent.
public GetRange ( int str, int stp ) : byte[]
str int
stp int
return byte[]

Peek() public method

Returns what would fall out of the buffer on a Push. NOT the same as what you'd get with a Pop().
public Peek ( ) : byte
return byte

Pop() public method

Pop an integer off the start of the buffer. Throws an exception if the buffer is empty (NumValid == 0)
public Pop ( ) : byte
return byte

Push() public method

Push a byte into the buffer. Returns the value of whatever comes off.
public Push ( byte newValue ) : byte
newValue byte
return byte

Reset() public method

public Reset ( ) : void
return void

ToString() public method

public ToString ( ) : String
return String

this() public method

e.g. Offset[0] is the current value
public this ( int index ) : byte
index int
return byte