github.com/Microsoft/azure-vhd-utils@v0.0.0-20230613175315-7c30a3748a1b/vhdcore/header/vhdHeaderVersion.go (about) 1 package header 2 3 // VhdHeaderVersion represents the major/minor version of the specification 4 // used in creating the vhd. The version is stored in the vhd header in 5 // big-endian format. 6 // 7 type VhdHeaderVersion uint32 8 9 // VhdHeaderSupportedVersion indicates the current VHD specification version 10 // 11 const VhdHeaderSupportedVersion VhdHeaderVersion = 0x00010000 12 13 // VhdHeaderVersionNone indicates an invalid VHD specification version 14 // 15 const VhdHeaderVersionNone = 0 16 17 // IsSupported returns true if this instance represents a supported VHD specification 18 // version. 19 // 20 func (v VhdHeaderVersion) IsSupported() bool { 21 return v == VhdHeaderSupportedVersion 22 }