PyIStream Object

A Python interface to IStream

Methods

Read
Read the specified number of bytes from the string. 

read
Alias for PyIStream::Read 

Write
Write data from a stream. 

write
Alias for PyIStream::Write 

Seek
Changes the seek pointer to a new location. 

SetSize
Changes the size of the stream object. 

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

Commit
Ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage. 

Revert
Discards all changes that have been made to a transacted stream since the last PyIStream::Commit call. 

LockRegion
Restricts access to a specified range of bytes in the stream. 

UnLockRegion
Removes the access restriction on a range of bytes previously restricted with PyIStream::LockRegion

Clone
Creates a new stream object with its own seek pointer that references the same bytes as the original stream. 

Stat
Returns information about a stream 

Based On

PyIUnknown