[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Storage.ComStream

Class ComStream

Namespace
GrapeCity.Documents.DX.Storage
Assembly
GcDocs.DX.Windows.dll

IStream

[Guid("0000000c-0000-0000-C000-000000000046")]
public class ComStream : ComStreamBase, IUnknown, IStream, IStreamBase, ICallbackable, IDisposable
Inheritance
object
ComStream
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ComStream(IntPtr)

Initializes a new instance of the ComStream class.

public ComStream(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Clone()

HRESULT IStream::Clone([Out] IStream** ppstm)

public IStream Clone()

Returns

IStream

Commit(CommitFlags)

HRESULT IStream::Commit([In] STGC grfCommitFlags)

public void Commit(CommitFlags grfCommitFlags)

Parameters

grfCommitFlags CommitFlags

CopyTo(IStream, long, out long)

Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.

public long CopyTo(IStream streamDest, long numberOfBytesToCopy, out long bytesWritten)

Parameters

streamDest IStream

The stream destination.

numberOfBytesToCopy long

The number of bytes to copy.

bytesWritten long

The bytes written.

Returns

long

The number of bytes read from this instance

GetStatistics(StorageStatisticsFlags)

HRESULT IStream::Stat([Out] STATSTG* pstatstg,[In] STATFLAG grfStatFlag)

public StorageStatistics GetStatistics(StorageStatisticsFlags grfStatFlag)

Parameters

grfStatFlag StorageStatisticsFlags

Returns

StorageStatistics

LockRegion(long, long, LockType)

HRESULT IStream::LockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType)

public void LockRegion(long libOffset, long cb, LockType dwLockType)

Parameters

libOffset long
cb long
dwLockType LockType

Revert()

HRESULT IStream::Revert()

public void Revert()

Seek(long, SeekOrigin)

HRESULT IStream::Seek([In] LARGE_INTEGER dlibMove,[In] SHARPDX_SEEKORIGIN dwOrigin,[Out, Optional] ULARGE_INTEGER* plibNewPosition)

public long Seek(long dlibMove, SeekOrigin dwOrigin)

Parameters

dlibMove long
dwOrigin System.IO.SeekOrigin

Returns

long

SetSize(long)

HRESULT IStream::SetSize([In] ULARGE_INTEGER libNewSize)

public void SetSize(long libNewSize)

Parameters

libNewSize long

ToIntPtr(IStream)

Gets a com pointer to the underlying IStream object.

public static IntPtr ToIntPtr(IStream stream)

Parameters

stream IStream

The stream.

Returns

System.IntPtr

A Com pointer

UnlockRegion(long, long, LockType)

HRESULT IStream::UnlockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType)

public void UnlockRegion(long libOffset, long cb, LockType dwLockType)

Parameters

libOffset long
cb long
dwLockType LockType

Operators

explicit operator ComStream(IntPtr)

Performs an explicit conversion from System.IntPtr to ComStream.

public static explicit operator ComStream(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

ComStream