コード例 #1
0
            internal Enumerator(HeaderMap dictionary)
            {
                this.dictionary = dictionary;

                this.index      = 0;
                this.currentKey = null;
            }
コード例 #2
0
        public FHashtable(string path, string table, int recordsize, int size)
        {
            if (path.LastIndexOf(System.IO.Path.DirectorySeparatorChar) != path.Length - 1)
            {
                path += System.IO.Path.DirectorySeparatorChar;
            }
            if (!System.IO.Directory.Exists(path))
            {
                System.IO.Directory.CreateDirectory(path);
            }
            string mapfile  = path + table + ".h";
            string datafile = path + table + ".data";

            Formater   = new StringFormater();
            mHeaderMap = new HeaderMap(mapfile, size);
            mDataTable = new DataTable(datafile, recordsize, mHeaderMap.Capacity);
            for (int i = 0; i < 50; i++)
            {
                mBufferPool.Push(new byte[recordsize]);
            }
        }
コード例 #3
0
 internal KeyCollection(HeaderMap hashtable)
 {
     this._hashtable = hashtable;
 }