Write

<< Click to Display Table of Contents >>

Navigation:  Memory Streams >

Write

Previous pageReturn to chapter overviewNext page

[Professional Edition and above]

Writes data to the supplied stream.

method int TVPEStream.Write(

BYTE *buffer,

int size

)

BYTE *buffer

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

int size

the number of bytes that shall be written

Returns:

The number of bytes written to the stream.

Remarks:

If you want to call a VPE method (for example ReadDocStream() or PictureStream()), after you have written data to a stream, you need to call Seek(0) first before calling Write() 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.