Ejemplo n.º 1
0
 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(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;
 }
Ejemplo n.º 3
0
 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(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;
 }
Ejemplo n.º 5
0
 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;
 }
 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;
 }