Crate vhdx

Source
Expand description

§VHDX

Latest Version Rust Documentation Actions Status Unsafe Forbidden

An implementation of Microsoft’s VHDX virtual hard disk format in Rust.

Based on Microsoft’s Open Specification available at: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-vhdx

§Usage

cargo add vhdx
[dependencies]
vhdx = "0.1"

§Example

use std::io::Read;

let mut disk = vhdx::Vhdx::load("disk.vhdx");
let mut reader = disk.reader();

let mut buffer = [0; 512];
reader.read(&mut buffer).unwrap();

Structs§

Reader
Vhdx
A VHDX file with all metadata loaded in-memory.