Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-06-2018, 02:18 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default Can extension-provided API functions return strings longer than 1024 characters?

REAPER itself seems to use a "NeedBig" modifier in the parameter name, if a long string is required:

Code:
C++: int GetProjExtState(ReaProject* proj, const char* extname, const char* key, char* valOutNeedBig, int valOutNeedBig_sz)
EEL: int GetProjExtState(ReaProject proj, "extname", "key", #val)
Lua: integer retval, string val = reaper.GetProjExtState(ReaProject proj, string extname, string key)
Python: (Int retval, ReaProject proj, String extname, String key, String valOutNeedBig, Int valOutNeedBig_sz) = RPR_GetProjExtState(proj, extname, key, valOutNeedBig, valOutNeedBig_sz)
When I tried to use "NeedBig", the API interpreter appears to recognize the modifier and, in the case of Lua, the modifier is removed from the parameter name in the API documentation and in the IDE help (as in the code above, "nameOutNeedBig" simply becomes "name").

However, the string size passed to the function is still only 1024.
juliansader is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.