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
파일 보기 프로젝트 열기: Azure/azure-powershell 1 사용 예제들

공개 메소드들

메소드 설명
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