C# Class Microsoft.DiaSymReader.ComStreamWrapper

Inheritance: IStream
ファイルを表示 Open project: dotnet/symreader

Public Methods

Method Description
Clone ( IStream &ppstm ) : void
Commit ( int grfCommitFlags ) : void
CopyTo ( IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten ) : void
LockRegion ( long libOffset, long cb, int lockType ) : void
Read ( byte pv, int cb, IntPtr pcbRead ) : void

The actual number of bytes read can be fewer than the number of bytes requested if an error occurs or if the end of the stream is reached during the read operation.

Revert ( ) : void
Seek ( long dlibMove, int origin, IntPtr plibNewPosition ) : void
SetSize ( long libNewSize ) : void
Stat ( STATSTG &pstatstg, int grfStatFlag ) : void
UnlockRegion ( long libOffset, long cb, int lockType ) : void
Write ( byte pv, int cb, IntPtr pcbWritten ) : void

Private Methods

Method Description
ComStreamWrapper ( Stream stream ) : System
TryReadAll ( Stream stream, byte buffer, int offset, int count ) : int

Attempts to read all of the requested bytes from the stream into the buffer

Unlike Stream.Read(byte[], int, int) it is not guaranteed that the stream position or the output buffer will be unchanged if an exception is returned.

Method Details

Clone() public method

public Clone ( IStream &ppstm ) : void
ppstm IStream
return void

Commit() public method

public Commit ( int grfCommitFlags ) : void
grfCommitFlags int
return void

CopyTo() public method

public CopyTo ( IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten ) : void
pstm IStream
cb long
pcbRead System.IntPtr
pcbWritten System.IntPtr
return void

LockRegion() public method

public LockRegion ( long libOffset, long cb, int lockType ) : void
libOffset long
cb long
lockType int
return void

Read() public method

The actual number of bytes read can be fewer than the number of bytes requested if an error occurs or if the end of the stream is reached during the read operation.
public Read ( byte pv, int cb, IntPtr pcbRead ) : void
pv byte
cb int
pcbRead System.IntPtr
return void

Revert() public method

public Revert ( ) : void
return void

Seek() public method

public Seek ( long dlibMove, int origin, IntPtr plibNewPosition ) : void
dlibMove long
origin int
plibNewPosition System.IntPtr
return void

SetSize() public method

public SetSize ( long libNewSize ) : void
libNewSize long
return void

Stat() public method

public Stat ( STATSTG &pstatstg, int grfStatFlag ) : void
pstatstg System.Runtime.InteropServices.ComTypes.STATSTG
grfStatFlag int
return void

UnlockRegion() public method

public UnlockRegion ( long libOffset, long cb, int lockType ) : void
libOffset long
cb long
lockType int
return void

Write() public method

public Write ( byte pv, int cb, IntPtr pcbWritten ) : void
pv byte
cb int
pcbWritten System.IntPtr
return void