Quote:
Originally Posted by SmajjL
# ReaScript: optimized calling of NeedBig APIs
# ReaScript: plug-in added API functions that use realloc_cmd_ptr/NeedBig can return binary-safe data (resized size is used)
|
Oh goody, so extensions can now return packed strings!
* Since the realloc size must be the exact string length, it it necessary for realloc_cmd_ptr to be able to shorten string lengths below 32768 chars.
* In the new version, if an API function is defined with a char* buf[Out]NeedBig, int buf[Out]NeedBig_sz pair, the Lua function call must explicitly include both parameters: e.g. myFunc("", 1000000), whereas previous versions only required the string "" argument.
* The API help in the browser only lists the string parameter as required (for Lua); and if the "Out" suffix is used, the IDE's help doesn't list either of the parameters as required.