Example #1
0
 public PushbackStream(Stream s, int backBufferSize)
 {
     m_Stream             = s;
     m_BackBufferSize     = backBufferSize;
     m_TemporaryBuffer    = new byte[m_BackBufferSize];
     m_CircularByteBuffer = new CircularByteBuffer(m_BackBufferSize);
 }
Example #2
0
 internal PushbackStream(Stream s, int backBufferSize)
 {
     _Stream             = s;
     _BackBufferSize     = backBufferSize;
     _TemporaryBuffer    = new byte[_BackBufferSize];
     _CircularByteBuffer = new CircularByteBuffer(_BackBufferSize);
 }
Example #3
0
 public PushbackStream(Stream s, int backBufferSize)
 {
     m_Stream = s;
     m_BackBufferSize = backBufferSize;
     m_TemporaryBuffer = new byte[m_BackBufferSize];
     m_CircularByteBuffer = new CircularByteBuffer(m_BackBufferSize);
 }
Example #4
0
 /// <summary>
 /// Initialize by copying the CircularByteBuffer passed in
 /// </summary>
 internal CircularByteBuffer(CircularByteBuffer cdb)
 {
     lock (cdb) {
         _Length    = cdb._Length;
         _NumValid  = cdb._NumValid;
         _Index     = cdb._Index;
         _DataArray = new byte[_Length];
         for (int c = 0; c < _Length; c++)
         {
             _DataArray[c] = cdb._DataArray[c];
         }
     }
 }
Example #5
0
 /// <summary>
 ///     Initialize by copying the CircularByteBuffer passed in
 /// </summary>
 public CircularByteBuffer(CircularByteBuffer cdb)
 {
     lock (cdb)
     {
         m_Length = cdb.m_Length;
         m_NumValid = cdb.m_NumValid;
         m_Index = cdb.m_Index;
         m_DataArray = new byte[m_Length];
         for (int c = 0; c < m_Length; c++)
         {
             m_DataArray[c] = cdb.m_DataArray[c];
         }
     }
 }
 /// <summary>
 ///     Initialize by copying the CircularByteBuffer passed in
 /// </summary>
 public CircularByteBuffer(CircularByteBuffer cdb)
 {
     lock (cdb)
     {
         m_Length    = cdb.m_Length;
         m_NumValid  = cdb.m_NumValid;
         m_Index     = cdb.m_Index;
         m_DataArray = new byte[m_Length];
         for (int c = 0; c < m_Length; c++)
         {
             m_DataArray[c] = cdb.m_DataArray[c];
         }
     }
 }