PrimoBurner for .NET
5.0
CD, DVD and Blu-ray Software Development Kit
|
Track Buffer. More...
Public Member Functions | |
TrackBuffer (Int32 blockSize, Int32 blocks) | |
Creates a new instance of TrackBuffer class. | |
Properties | |
Int32 | Blocks [get] |
Returns the available blocks in the buffer. | |
Int32 | BlockSize [get, set] |
Gets/sets the size of one block in the buffer. | |
byte[] | Buffer [get] |
Returns the actual data being read from the device. | |
Int32 | MaxBlocks [get] |
Gets the maximum size of the buffer, in blocks. | |
Track Buffer.
This structure is used for disc reading.
TrackBuffer | ( | Int32 | blockSize, |
Int32 | blocks | ||
) |
Creates a new instance of TrackBuffer class.
blockSize | The initial blocksize to use for the buffer |
blocks | Maximum blocks to use with the buffer |
|
get |
Returns the available blocks in the buffer.
This property changes on every read operation performed by Device.ReadData and Device.ReadAudio. It can range from 0 to maxBlocks.
Referenced by Device.ReadAudio().
|
getset |
Gets/sets the size of one block in the buffer.
Device.ReadData changes the value of this property according to the size of the blocks it reads within a single read operation. TrackBuffer always holds blocks of the same size.
Referenced by Device.ReadAudio(), and Device.ReadData().
|
get |
Returns the actual data being read from the device.
The number of available data bytes is equal to Blocks * BlocksSize.
|
get |
Gets the maximum size of the buffer, in blocks.
This value is determined when the buffer is created.
Referenced by Device.ReadData().