コード例 #1
0
        public static CacheyBashi Create(string outDir, string dbName, IEnumerable <KeyValuePair <byte[], byte[]> > data, ushort keyLength, byte indexKeyLength = 2)
        {
            var cb = new CacheyBashi(outDir, dbName, keyLength, indexKeyLength, true);

            CbWriter.Write(cb, keyLength, data);

            return(cb);
        }
コード例 #2
0
        public static CacheyBashi Create(string outDir,
                                         string dbName,
                                         IEnumerable <KeyValuePair <HashBin, byte[]> > data,
                                         ushort keyLength,
                                         byte indexKeyLength = 2)
        {
            if (!Directory.Exists(outDir))
            {
                Directory.CreateDirectory(outDir);
            }

            var cb = new CacheyBashi(outDir, dbName, keyLength, indexKeyLength, true);

            CbWriter.Write(cb, keyLength, data);

            return(cb);
        }