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

Reply
 
Thread Tools Display Modes
Old 11-06-2018, 02:33 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,801
Default Can extension-provided API functions return strings that contain \0 characters?

Several WIN32 and WDL/swell function use single \0 characters as separators between substrings inside a longer string, which is terminated by two consecutive \0 characters.

Much more importantly, "packed" Lua strings often contain lots of 0 bytes. In order to return packed strings -- similar to REAPER's own MIDI_GetAllEvts functions -- API functions must somehow be able to return strings that are not 0-terminated.

Is this possible?

EDIT: Now it's possible! Refer to this thread: Can extension-provided API functions return strings longer than 1024 characters?

Last edited by juliansader; 02-20-2019 at 11:07 PM.
juliansader is offline   Reply With Quote
Reply

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 01:08 AM.


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