Regular API function


Description Attaches a raw buffer to a given script. All raw buffers are automatically released at the end of a simulation. See also simGetScriptRawBuffer.
C synopsis simInt simSetScriptRawBuffer(simInt scriptHandle,const simChar* buffer,simInt bufferSize)
C parameters
scriptHandle: handle of the script
buffer: pointer to the buffer
bufferSize: size of the buffer (the function will copy the buffer which can then immediately be released by the calling application)
C return value
a handle to the buffer. Using that handle and the simGetScriptRawBuffer, the buffer can be retrieved. In case of an error, the return value is -1
Lua synopsis -
Lua parameters
Lua return values

All regular API functions on one page