internal PageWriter(int page, int count, PageFile file, ArrayStorage ars)
        {
            pageSize = file.PageSize;
            buf      = new byte[pageSize];
            stream   = file.CreateStream(FileAccess.Write);

            this.file = file;
            this.ars  = ars;

            Init(page, count);
        }
        internal PageReader(int page, int count, PageFile file, ArrayStorage storage)
        {
            this.file = file;

            pageSize = file.PageSize;
            stream   = file.CreateStream(FileAccess.Read);
            buf      = new byte[pageSize];
            ars      = storage;


            Init(page, count);
        }
        //
        protected Table(DataBase dataBase, TableVersion current, string key)
        {
            Key            = key;
            CurrentVersion = current;

            DataBase      = dataBase;
            ht            = new DictionarySafe <int, T>();
            File          = new PageFile(dataBase.DirectoryPath + Key + ".pgf", CurrentVersion.RecordSize, current.Mode);
            CashSizeLow   = 10000;
            CashSizeHight = 20000;
            Indexes       = new List <object>();

            dataBase.Tables.Add(this);
            InitVersion(current);
        }
Exemplo n.º 4
0
 public ReaderCRC32(int page, int count, PageFile file, ArrayStorage storage) : base(page, count, file, storage)
 {
     this.crc32 = new CRC32();
 }
Exemplo n.º 5
0
 internal WriterCRC32(int page, int count, PageFile file, ArrayStorage ars) : base(page, count, file, ars)
 {
     this.crc32 = new CRC32();
 }