示例#1
0
        public static IStorageEngine FromMemory(bool useCompression = false, AllocationStrategy strategy = AllocationStrategy.FromTheCurrentBlock)
        {
            var stream = new MemoryStream();

            return(STSdb.FromStream(stream, useCompression, strategy));
        }
示例#2
0
        public static IStorageEngine FromFile(string fileName, bool useCompression = false, AllocationStrategy strategy = AllocationStrategy.FromTheCurrentBlock)
        {
            var stream = new OptimizedFileStream(fileName, FileMode.OpenOrCreate);

            return(STSdb.FromStream(stream, useCompression, strategy));
        }
示例#3
0
文件: STSdb.cs 项目: yuuhhe/STSdb4
        public static IStorageEngine FromFile(string fileName)
        {
            var stream = new OptimizedFileStream(fileName, FileMode.OpenOrCreate);

            return(STSdb.FromStream(stream));
        }