Microsoft.WindowsAzure.Commands.Tools.Vhd.Model.Persistence.BlockAllocationTableFactory.Create C# (CSharp) Method

Create() public method

public Create ( ) : BlockAllocationTable
return BlockAllocationTable
        public BlockAllocationTable Create()
        {
            dataReader.SetPosition(header.TableOffset);

            var bat = new uint[header.MaxTableEntries];
            for (int block = 0; block < header.MaxTableEntries; block++)
            {
                bat[block] = dataReader.ReadUInt32();
            }
            return new BlockAllocationTable(header.MaxTableEntries, header.BlockSize, bat);
        }