internal NativeBuffer GetScratchBuffer(int minSize) { NativeBuffer buffer = this._scratchBuffer; if ((buffer == null) || (buffer.Length < minSize)) { if (buffer != null) { buffer.Dispose(); } buffer = new NativeBuffer_ScratchBuffer(minSize); this._scratchBuffer = buffer; } return(buffer); }
internal NativeBuffer GetScratchBuffer(int minSize) { NativeBuffer buffer = this._scratchBuffer; if ((buffer == null) || (buffer.Length < minSize)) { if (buffer != null) { buffer.Dispose(); } buffer = new NativeBuffer_ScratchBuffer(minSize); this._scratchBuffer = buffer; } return buffer; }