ref_iface_IVDXInputOptions_Write - shekh/VirtualDub2 GitHub Wiki
VirtualDub Plugin SDK 1.2
IVDXInputOptions interface
Writes the contents of the option structure to a block of memory.
uint32 Write(void *buf, uint32 buflen);
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. |
This method is not thread-safe.
Errors may not be returned from this function (see SetError()).
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.
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.