C# Класс 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.
Наследование: SparseStream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
ByteToBlock ( long position ) : uint
GenerateFooter ( ) : byte[]

Описание методов

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

Read() публичный Метод

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
Результат int

Seek() публичный Метод

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Результат long

SetLength() публичный Метод

public SetLength ( long value ) : void
value long
Результат void

TryReadFromFooter() публичный Метод

public TryReadFromFooter ( IndexRange rangeToRead, byte buffer, int offset, int &readCount ) : bool
rangeToRead IndexRange
buffer byte
offset int
readCount int
Результат bool

VirtualDiskStream() публичный Метод

public VirtualDiskStream ( string vhdPath ) : Microsoft.WindowsAzure.Commands.Tools.Vhd.Model
vhdPath string
Результат Microsoft.WindowsAzure.Commands.Tools.Vhd.Model

Write() публичный Метод

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void