<< Click to Display Table of Contents >> Read |
![]() ![]() ![]() |
[Professional Edition and above]
Reads data from the supplied stream.
method int TVPEStream.Read(
BYTE *buffer,
int size
)
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 Seek(0) first before calling Read() in order to reset the internal stream pointer to the beginning of the stream.
Python:
The parameter buffer is of type ctypes.c_char_p. See ctypes.create_string_buffer() to allocate a buffer.