Пример #1
0
 internal void ClearBuffer()
 {
     BufferId = 0;
     BufferSize = 0;
     BufferOffset = 0;
     BufferHandle = null;
     BufferManager = null;
 }
Пример #2
0
 internal void SetBuffer(BufferManager bufferManager, byte[] bufferHandle, int bufferId, int bufferOffset, int bufferSize)
 {
     #if DEBUG
     if (bufferHandle == null)
     {
         throw new ArgumentNullException("bufferHandle");
     }
     #endif
     BufferId = bufferId;
     BufferSize = bufferSize;
     BufferOffset = bufferOffset;
     BufferHandle = bufferHandle;
     BufferManager = bufferManager;
 }