VpeStreamRead

<< Click to Display Table of Contents >>

Navigation:  Memory Streams >

VpeStreamRead

Previous pageReturn to chapter overviewNext page

[Professional Edition and above]

Reads data from the supplied stream.

int VpeStreamRead(

VpeHandle hStream,

BYTE *buffer,

int size

)

VpeHandle hStream

stream handle

BYTE *buffer

pointer to the buffer, to which the data will be copied from the stream

int size

the number of bytes that shall be read

Returns:

The number of bytes read from the stream.

Remarks:

When reading from a stream, which was written by a VPE method, e.g. WriteDocStream() or PictureStream() etc., you need to call VpeStreamSeek(hStream, 0) first before calling VpeStreamRead() in order to reset the internal stream pointer to the beginning of the stream.