github.com/Microsoft/azure-vhd-utils@v0.0.0-20230613175315-7c30a3748a1b/vhdcore/block/factory.go (about)

     1  package block
     2  
     3  import (
     4  	"github.com/Microsoft/azure-vhd-utils/vhdcore/common"
     5  )
     6  
     7  // Factory interface that all block factories specific to disk type (fixed,
     8  // dynamic, differencing) needs to satisfy.
     9  //
    10  type Factory interface {
    11  	GetBlockCount() int64
    12  	GetBlockSize() int64
    13  	Create(blockIndex uint32) (*Block, error)
    14  	GetFooterRange() *common.IndexRange
    15  	GetSector(block *Block, sectorIndex uint32) (*Sector, error)
    16  }