/// <summary>
 /// This is a stream class that writes the data to the write buffer pool to be sent
 /// down to the CD/DVD device.
 /// </summary>
 /// <param name="pool">the buffer pool to get pages from and send data to</param>
 /// <param name="sector_size">the size of the sectors to buffer</param>
 /// <param name="lba">the logical block address for the first block from this stream</param>
 public WriteBufferStream(WriteBufferPool pool, int sector_size, long lba)
 {
     m_length = 0;
     m_pool = pool;
     m_buffer = null;
     m_index = 0;
     m_sector_size = sector_size;
     m_sector_count = m_pool.PageSize / m_sector_size;
     m_closing = false;
     m_lba = lba;
 }
Exemple #2
0
 /// <summary>
 /// Create a new file reader that sends the data read to a buffer stream
 /// object
 /// </summary>
 /// <param name="buffer">the buffer to receive the data</param>
 public FileReader(WriteBufferPool buffer)
 {
     m_buffer_stream = buffer;
     m_reader        = new OsFileReader();
 }
 /// <summary>
 /// Create a new file reader that sends the data read to a buffer stream
 /// object
 /// </summary>
 /// <param name="buffer">the buffer to receive the data</param>
 public FileReader(WriteBufferPool buffer)
 {
     m_buffer_stream = buffer;
     m_reader = new OsFileReader();
 }