Skip to content

ref_iface_IVDXInputOptions_Write

shekh edited this page Apr 15, 2018 · 1 revision

VirtualDub Plugin SDK 1.2

IVDXInputOptions interface

IVDXInputOptions:: Write

Writes the contents of the option structure to a block of memory.

uint32 Write(void *buf, uint32 buflen);

Parameters

buf Buffer to accept serialized data. This can be NULL to determine the size of the required buffer.
buflen Length of buffer pointed to by buf, in bytes. This must be zero if buf == NULL.

Thread safety

This method is not thread-safe.

Errors

Errors may not be returned from this function (see SetError()).

Return value

If the size of the buffer is at least enough to hold the serialized data, the number of bytes written to buf is returned. Otherwise, the number of bytes required is returned.

Remarks

This function is typically called twice: once to retrieve the required buffer size, and again to actually write the data. The size of the data should always be consistent between calls.


Copyright (C) 2007-2012 Avery Lee.

Clone this wiki locally