コード例 #1
0
ファイル: PushbackStream.cs プロジェクト: SNAKEspb/VKBot
 public PushbackStream(Stream s, int backBufferSize)
 {
     m_Stream             = s;
     m_BackBufferSize     = backBufferSize;
     m_TemporaryBuffer    = new byte[m_BackBufferSize];
     m_CircularByteBuffer = new CircularByteBuffer(m_BackBufferSize);
 }
コード例 #2
0
 internal PushbackStream(Stream s, int backBufferSize)
 {
     _Stream             = s;
     _BackBufferSize     = backBufferSize;
     _TemporaryBuffer    = new byte[_BackBufferSize];
     _CircularByteBuffer = new CircularByteBuffer(_BackBufferSize);
 }
コード例 #3
0
ファイル: PushbackStream.cs プロジェクト: clashbyte/openvice
 public PushbackStream(Stream s, int backBufferSize)
 {
     m_Stream = s;
     m_BackBufferSize = backBufferSize;
     m_TemporaryBuffer = new byte[m_BackBufferSize];
     m_CircularByteBuffer = new CircularByteBuffer(m_BackBufferSize);
 }
コード例 #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];
         }
     }
 }
コード例 #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];
         }
     }
 }
コード例 #6
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];
         }
     }
 }