Example #1
0
        public Pending_ChangesV2(int blockSize, long index_Pointer, Node_Factory <T> node_Factory)
        {
            Block_Size   = blockSize;
            Node_Factory = node_Factory;

            Freed_Empty_Slots = new List <long>();
            Pending_Nodes     = new List <Node <T> >();
            Nodes             = new List <Node <T> >();
            Empty_Slots       = new List <Block_Group>();

            _base_Address_Index = new Dictionary <long, Block>();
            _end_Address_Index  = new Dictionary <long, Block>();

            _index_Pointer = index_Pointer;
        }
Example #2
0
        public Pending_Changes(int blockSize, long index_Pointer, long data_Pointer, Node_Factory <T> node_Factory, Data_Serializer <T> dataSerializer)
        {
            _block_Size      = blockSize;
            _node_Factory    = node_Factory;
            _data_Serializer = dataSerializer;

            Freed_Empty_Slots = new List <long>();
            Pending_Nodes     = new List <Node <T> >();
            Pending_Data      = new List <Data <T> >();
            Nodes             = new List <Node <T> >();
            Empty_Slots       = new List <Block_Group>();

            _base_Address_Index = new Dictionary <long, Block>();
            _end_Address_Index  = new Dictionary <long, Block>();

            _index_Pointer = index_Pointer;
            _data_Pointer  = data_Pointer;
        }