Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the OverlappedStreamBuffered class
 /// </summary>
 /// <param name="path">A relative or absolute path for the file.  UNC long path file names are supported.</param>
 /// <param name="mode">A constant that determines how to open or create the file.</param>
 /// <param name="access">A constant that determines how the file can be accessed.</param>
 /// <param name="share">A constant that determines how the file will be shared by processes.</param>
 /// <param name="options">A constant that specifies additional file options.</param>
 /// <param name="attributes">A constant that specifies file attributes which are set when file is created.</param>
 public OverlappedStreamBuffered(
     string path,
     FileMode mode,
     FileAccess access,
     FileShare share,
     BufferedFileOptions options,
     FileAttributes attributes = FileAttributes.Normal) :
     base(path, mode, access, share, unchecked ((uint)options | (uint)attributes) | NativeMethods.FILE_FLAG_OVERLAPPED)
 {
 }
 /// <summary>
 /// Initializes a new instance of the OverlappedStreamBuffered class
 /// </summary>
 /// <param name="path">A relative or absolute path for the file.  UNC long path file names are supported.</param>
 /// <param name="mode">A constant that determines how to open or create the file.</param>
 /// <param name="access">A constant that determines how the file can be accessed.</param>
 /// <param name="share">A constant that determines how the file will be shared by processes.</param>
 /// <param name="options">A constant that specifies additional file options.</param>
 /// <param name="attributes">A constant that specifies file attributes which are set when file is created.</param>
 public OverlappedStreamBuffered(
     string path,
     FileMode mode,
     FileAccess access,
     FileShare share,
     BufferedFileOptions options,
     FileAttributes attributes = FileAttributes.Normal) : 
     base(path, mode, access, share, unchecked((uint)options | (uint)attributes) | NativeMethods.FILE_FLAG_OVERLAPPED)
 {
 }