private VhdHeaderVersion EndReadHeaderVersion(IAsyncResult result) { var value = dataReader.EndReadUInt32(result); var headerVersion = new VhdHeaderVersion(value); if (!headerVersion.IsSupported()) { throw new VhdParsingException("unsupported format"); } return(headerVersion); }
private VhdHeaderVersion ReaderHeaderVersion(VhdPropertyAttribute attribute) { var version = dataReader.ReadUInt32(headerOffset + attribute.Offset); var headerVersion = new VhdHeaderVersion(version); if (!headerVersion.IsSupported()) { throw new VhdParsingException("unsupported format"); } return(headerVersion); }