char *PEXGetOCAddr( Display *display, int length )
A pointer to memory where the application can write output command data; a null pointer if unsuccessful.
Invoke PEXGetOCAddr to get a memory address to the specified number of bytes in the transport buffer where the application can write data. This function flushes data currently in the transport buffer, if needed to satisfy the requested length.
This function returns a pointer that is valid only until you invoke the next PEXGetOCAddr or PEXCopyBytesToOC.
An attempt to request more bytes than returned by PEXGetOCAddrMaxSize, results in an unsuccessful return value (NULL pointer).
You must first invoke PEXStartOCs.
Do not attempt to deallocate or free memory at the address returned by this function.
None.
For a list of related topics and functions, see Sending Encoded Output Commands.