Whole document tree
MsOleStream
Details struct MsOleStreamstruct MsOleStream
{
MsOlePos size;
gint (*read_copy) (MsOleStream *stream,
guint8 *ptr,
MsOlePos length);
guint8 * (*read_ptr) (MsOleStream *stream,
MsOlePos length);
MsOleSPos (*lseek) (MsOleStream *stream,
MsOleSPos bytes,
MsOleSeek type);
MsOlePos (*tell) (MsOleStream *stream);
MsOlePos (*write) (MsOleStream *stream,
guint8 *ptr,
MsOlePos length);
/**
* PRIVATE (do not use)
**/
enum {
MsOleSmallBlock,
MsOleLargeBlock
} type;
MsOle *file;
void *pps; /* Straight PPS */
GArray *blocks; /* A list of the blocks in the file
if NULL: no file */
MsOlePos position; /* Current offset into file.
Points to the next byte to read */
};
ms_ole_stream_open ()Opens the stream in dirpath with the name name and creates the stream
object stream . If mode is 'r ' it opens read only, and if it is 'w '
it opens for write only.
ms_ole_stream_close ()Closes the stream .
ms_ole_stream_duplicate ()Duplicates the stream object stream .