PrimoBurner for .NET  4.6
CD, DVD and Blu-ray Software Development Kit
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
TrackBuffer Class Reference

Track Buffer. More...

Public Member Functions

 TrackBuffer (Int32 blockSize, Int32 blocks)
 Creates a new instance of TrackBuffer class More...
 

Properties

Int32 Blocks [get]
 Returns the available blocks in the buffer. More...
 
Int32 BlockSize [get, set]
 Gets/sets the size of one block in the buffer. More...
 
byte[] Buffer [get]
 Returns the actual data being read from the device. More...
 
Int32 MaxBlocks [get]
 Gets the maximum size of the buffer, in blocks. More...
 

Detailed Description

Track Buffer.

This structure is used for disc reading.

Constructor & Destructor Documentation

TrackBuffer ( Int32  blockSize,
Int32  blocks 
)

Creates a new instance of TrackBuffer class

Parameters
blockSizeThe initial blocksize to use for the buffer
blocksMaximum blocks to use with the buffer

Property Documentation

Int32 Blocks
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().

Int32 BlockSize
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().

byte [] Buffer
get

Returns the actual data being read from the device.

The number of available data bytes is equal to Blocks * BlocksSize.

Int32 MaxBlocks
get

Gets the maximum size of the buffer, in blocks.

This value is determined when the buffer is created.

Referenced by Device.ReadData().