PrimoBurner for .NET  5.0
CD, DVD and Blu-ray Software Development Kit
Loading...
Searching...
No Matches
TrackBuffer Class Reference

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.
 

Detailed Description

Track Buffer.

This structure is used for disc reading.

Constructor & Destructor Documentation

◆ TrackBuffer()

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

◆ Blocks

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

◆ BlockSize

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

◆ Buffer

byte [] Buffer
get

Returns the actual data being read from the device.

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

◆ MaxBlocks

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