Documentation Plugin API/SDK

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Oct 18, 2008
263
1
#1
Hello –

I am having an issue with my pluging and I would just like to clarify when a plugin function or variable returns text ....

- The returned value is copied into the same buffer that was pass to the function that contained the arguments to the function

- The buffer is 8192 “bytes” large, thus it can hold 4096 unicode (TCHAR) characters, the
return value must terminate with a null, or zero value, so the longest string would be 4095 characters, plus one (1) unicode zero character

Thanks
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,376
39
Albuquerque, NM
prospero.unm.edu
#2
- The returned value is copied into the same buffer that was pass to the function that contained the arguments to the function
Yes.

- The buffer is 8192 “bytes” large, thus it can hold 4096 unicode (TCHAR) characters, the
return value must terminate with a null, or zero value, so the longest string would be 4095 characters, plus one (1) unicode zero character
I haven't tested, but I think it's more than that: 8K wide characters, or 16 kilobytes. Might even be more -- Rex does sometimes increase buffer sizes in a new version.
 
Oct 18, 2008
263
1
#3
Yes.



I haven't tested, but I think it's more than that: 8K wide characters, or 16 kilobytes. Might even be more -- Rex does sometimes increase buffer sizes in a new version.
Thanks -- I found the 8lk value in the header file (*.h) -- Do you know if there is a new SDK for V14?