C# 클래스 Microsoft.Samples.VisualStudio.SourceControlIntegration.SccProvider.DataStreamFromComStream

Implements a managed Stream object on top of a COM IStream.
상속: Stream, IDisposable
파일 보기 프로젝트 열기: Microsoft/VSSDK-Extensibility-Samples 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Close the stream.

DataStreamFromComStream ( IStream comStream ) : System

Build the managed Stream object on top of the IStream COM object

Dispose ( ) : void

Dispose this object and release the COM stream.

Flush ( ) : void

Flush the pending data to the stream.

Read ( byte buffer, int index, int count ) : int

Reads a buffer of data from the stream.

Seek ( long offset, SeekOrigin origin ) : long

Changes the seek pointer to a new location relative to the current seek pointer or the beginning or end of the stream.

SetLength ( long value ) : void

Sets the length of the stream.

Write ( byte buffer, int index, int count ) : void

Writes a specified number of bytes into the stream object starting at the current seek pointer.

비공개 메소드들

메소드 설명
_NotImpl ( string message ) : void

메소드 상세

Close() 공개 메소드

Close the stream.
public Close ( ) : void
리턴 void

DataStreamFromComStream() 공개 메소드

Build the managed Stream object on top of the IStream COM object
public DataStreamFromComStream ( IStream comStream ) : System
comStream IStream The COM IStream object.
리턴 System

Dispose() 공개 메소드

Dispose this object and release the COM stream.
public Dispose ( ) : void
리턴 void

Flush() 공개 메소드

Flush the pending data to the stream.
public Flush ( ) : void
리턴 void

Read() 공개 메소드

Reads a buffer of data from the stream.
public Read ( byte buffer, int index, int count ) : int
buffer byte The buffer to read into.
index int Starting position inside the buffer.
count int Number of bytes to read.
리턴 int

Seek() 공개 메소드

Changes the seek pointer to a new location relative to the current seek pointer or the beginning or end of the stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long Displacement to be added to the location indicated by origin.
origin SeekOrigin Specifies the origin for the displacement.
리턴 long

SetLength() 공개 메소드

Sets the length of the stream.
public SetLength ( long value ) : void
value long The new lenght.
리턴 void

Write() 공개 메소드

Writes a specified number of bytes into the stream object starting at the current seek pointer.
public Write ( byte buffer, int index, int count ) : void
buffer byte The buffer to write into the stream.
index int Index inside the buffer of the first byte to write.
count int Number of bytes to write.
리턴 void