Inheritance: IFileStream
示例#1
0
        public IFileStream CreateType3(string name)
        {
            MFileStream fs = new MFileStream();

            fs.fs = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.None);
            return(fs);
        }
示例#2
0
        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);
        }
示例#3
0
 public IFileStream CreateType3(string name)
 {
     MFileStream fs = new MFileStream();
     fs.fs = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.None);
     return fs;
 }
示例#4
0
 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;
 }