public IFileStream CreateType3(string name) { MFileStream fs = new MFileStream(); fs.fs = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.None); return(fs); }
public IFileStream CreateType1(string name, int bufferSize) { MFileStream fs = new MFileStream(); fs.fs = new FileStream(name, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None, bufferSize, FileOptions.WriteThrough); return(fs); }
public IFileStream CreateType3(string name) { MFileStream fs = new MFileStream(); fs.fs = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.None); return fs; }
public IFileStream CreateType1(string name, int bufferSize) { MFileStream fs = new MFileStream(); fs.fs = new FileStream(name, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None, bufferSize, FileOptions.WriteThrough); return fs; }