C# Class Microsoft.WindowsAzure.Commands.Tools.Vhd.VirtualDiskStream

Provides a logical stream over a virtual hard disk (VHD).
This stream implementation provides a "view" over a VHD, such that the VHD appears to be an ordinary fixed VHD file, regardless of the true physical layout. This stream supports any combination of differencing, dynamic disks, and fixed disks.
Inheritance: SparseStream
Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Méthodes publiques

Méthode Description
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int

Reads the specified number of bytes from the current position.

Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
TryReadFromFooter ( IndexRange rangeToRead, byte buffer, int offset, int &readCount ) : bool
VirtualDiskStream ( string vhdPath ) : Microsoft.WindowsAzure.Commands.Tools.Vhd.Model
Write ( byte buffer, int offset, int count ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
ByteToBlock ( long position ) : uint
GenerateFooter ( ) : byte[]

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

Read() public méthode

Reads the specified number of bytes from the current position.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

TryReadFromFooter() public méthode

public TryReadFromFooter ( IndexRange rangeToRead, byte buffer, int offset, int &readCount ) : bool
rangeToRead IndexRange
buffer byte
offset int
readCount int
Résultat bool

VirtualDiskStream() public méthode

public VirtualDiskStream ( string vhdPath ) : Microsoft.WindowsAzure.Commands.Tools.Vhd.Model
vhdPath string
Résultat Microsoft.WindowsAzure.Commands.Tools.Vhd.Model

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void