예제 #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());
        }
예제 #2
0
        public PageAllocator(PagedContainerHeader header)
        {
            this.header = header;

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