Class Win32Stream
Win32Stream is a fileStream class, that are based on the Win32 api, which enables long path- and filenames (Lengths up to 32kb).
Inheritance
System.Object
System.MarshalByRefObject
System.IO.Stream
System.IO.FileStream
Win32Stream
Implements
System.IDisposable
Inherited Members
System.IO.FileStream.GetAccessControl()
System.IO.FileStream.SetAccessControl(System.Security.AccessControl.FileSecurity)
System.IO.FileStream.Dispose(System.Boolean)
System.IO.FileStream.Flush()
System.IO.FileStream.Flush(System.Boolean)
System.IO.FileStream.SetLength(System.Int64)
System.IO.FileStream.Read(System.Byte[], System.Int32, System.Int32)
System.IO.FileStream.Seek(System.Int64, System.IO.SeekOrigin)
System.IO.FileStream.Write(System.Byte[], System.Int32, System.Int32)
System.IO.FileStream.BeginRead(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
System.IO.FileStream.EndRead(System.IAsyncResult)
System.IO.FileStream.ReadByte()
System.IO.FileStream.BeginWrite(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
System.IO.FileStream.EndWrite(System.IAsyncResult)
System.IO.FileStream.WriteByte(System.Byte)
System.IO.FileStream.Lock(System.Int64, System.Int64)
System.IO.FileStream.Unlock(System.Int64, System.Int64)
System.IO.FileStream.ReadAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
System.IO.FileStream.WriteAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
System.IO.FileStream.FlushAsync(System.Threading.CancellationToken)
System.IO.FileStream.CanRead
System.IO.FileStream.CanWrite
System.IO.FileStream.CanSeek
System.IO.FileStream.IsAsync
System.IO.FileStream.Length
System.IO.FileStream.Name
System.IO.FileStream.Position
System.IO.FileStream.Handle
System.IO.FileStream.SafeFileHandle
System.IO.Stream.Null
System.IO.Stream.CopyToAsync(System.IO.Stream)
System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32)
System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32, System.Threading.CancellationToken)
System.IO.Stream.CopyTo(System.IO.Stream)
System.IO.Stream.CopyTo(System.IO.Stream, System.Int32)
System.IO.Stream.Close()
System.IO.Stream.Dispose()
System.IO.Stream.FlushAsync()
System.IO.Stream.CreateWaitHandle()
System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32)
System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32)
System.IO.Stream.Synchronized(System.IO.Stream)
System.IO.Stream.ObjectInvariant()
System.IO.Stream.CanTimeout
System.IO.Stream.ReadTimeout
System.IO.Stream.WriteTimeout
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.CreateObjRef(System.Type)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Core.Lib.IO
Assembly: ImageVault.Core.dll
Syntax
public class Win32Stream : FileStream, IDisposable
Constructors
Win32Stream(String, FileAccess, FileMode)
Initializes a new instance of the Win32Stream class.
Declaration
public Win32Stream(string path, FileAccess access, FileMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The local path of the file |
System.IO.FileAccess | access | Type of FileAccess |
System.IO.FileMode | mode | Type of FileMode |
Methods
CreateFile(String, FileAccess, FileMode)
Method for creating a file with long filename/path
Declaration
public static SafeFileHandle CreateFile(string path, FileAccess access, FileMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Full path |
System.IO.FileAccess | access | Desired access |
System.IO.FileMode | mode | Desired mode |
Returns
Type | Description |
---|---|
Microsoft.Win32.SafeHandles.SafeFileHandle |
Implements
System.IDisposable