Beispiel #1
0
        public PageAllocator(PagedContainerHeader header, Stream stm)
        {
            this.header = header;

            var buff = stm.ReadWithPageSequence(header, FIRST_PA_PAGE).Data;

            pageAllocations = new ExpandableBitArray(header.DataHandler.Unpack(buff).ToArray());
        }
Beispiel #2
0
        public PageAllocator(PagedContainerHeader header)
        {
            this.header = header;

            pageAllocations    = new ExpandableBitArray(2);
            pageAllocations[0] = true;
            pageAllocations[1] = true;
        }