Esempio n. 1
0
 internal void ClearBuffer()
 {
     BufferId = 0;
     BufferSize = 0;
     BufferOffset = 0;
     BufferHandle = null;
     BufferManager = null;
 }
Esempio n. 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;
 }