예제 #1
0
 /// <summary>
 /// Initializes new instance and initializes new system file stream.
 /// </summary>
 /// <param name="path">Path to file.</param>
 /// <param name="mode">File mode.</param>
 /// <param name="access">File access.</param>
 /// <param name="bSize">Buffer size.</param>
 /// <param name="share">Sharing permissions.</param>
 public FileStream(string path, CMS.IO.FileMode mode, CMS.IO.FileAccess access, CMS.IO.FileShare share, int bSize)
     : base(path)
 {
     this.mPath      = path;
     this.fileMode   = mode;
     this.fileAccess = access;
     this.fileShare  = share;
     this.bufferSize = bSize;
     this.InitFileStream();
 }
예제 #2
0
 /// <summary>
 /// Initializes new instance and initializes new system file stream.
 /// </summary>
 /// <param name="path">Path to file.</param>
 /// <param name="mode">File mode.</param>
 /// <param name="access">File access.</param>
 /// <param name="share">Sharing permissions.</param>
 public FileStream(string path, CMS.IO.FileMode mode, CMS.IO.FileAccess access, CMS.IO.FileShare share)
     : this(path, mode, access, share, 4096)
 {
 }