pub fn new(buffer: &[u8]) -> Result<RegionTableEntry> {
        let mut region_table_entry = unsafe { *(buffer.as_ptr() as *mut RegionTableEntry) };

        let uuid = crate::uuid_from_guid(buffer).map_err(VhdxHeaderError::InvalidUuid)?;
        region_table_entry.guid = uuid;

        Ok(region_table_entry)
    }
/// Reads one Region Entry from a Region Table index that starts from 0
Reads one Region Entry from a Region Table index that starts from 0
Reads one Region Entry from a Region Table index that starts from 0
pub fn new(buffer: &[u8]) -> Result<RegionTableEntry> {
        let mut region_table_entry = unsafe { *(buffer.as_ptr() as *mut RegionTableEntry) };
        let uuid = crate::uuid_from_guid(buffer).map_err(VhdxHeaderError::InvalidUuid)?;
        region_table_entry.guid = uuid;
        Ok(region_table_entry)
    }
pub fn new ( buffer : & [ u8 ] ) -> Result < RegionTableEntry > { let mut region_table_entry = unsafe { * ( buffer . as_ptr ( ) as * mut RegionTableEntry ) } ; let uuid = crate :: uuid_from_guid ( buffer ) . map_err ( VhdxHeaderError :: InvalidUuid ) ? ; region_table_entry . guid = uuid ; Ok ( region_table_entry ) }
Reads one Region Entry from a Region Table index that starts from 0
Reads one Region Entry from a Region Table index that starts from 0
buffer
&[u8]
buffer
&[u8]