internal MemoryBytes(IntPtr data, int size, System.Web.Hosting.BufferType bufferType) { this._size = size; this._arrayData = null; this._intptrData = data; this._fileHandle = IntPtr.Zero; this._bufferType = bufferType; }
internal MemoryBytes(string fileName, long offset, long fileSize) { this._bufferType = System.Web.Hosting.BufferType.TransmitFile; this._intptrData = IntPtr.Zero; this._fileHandle = IntPtr.Zero; this._fileSize = fileSize; this._fileName = fileName; this._offset = offset; this._size = IntPtr.Size; }
internal MemoryBytes(byte[] data, int size, bool useTransmitFile, long fileSize) { this._size = size; this._arrayData = data; this._intptrData = IntPtr.Zero; this._fileHandle = IntPtr.Zero; if (useTransmitFile) { this._bufferType = System.Web.Hosting.BufferType.TransmitFile; } this._fileSize = fileSize; }