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