On Tue, Jul 5, 2011 at 12:56 AM, Charles A. Lopez
<[email protected]> wrote:
> Can you provide the prototypes for the two methods you've listed.

I'm not at the computer where I do that coding right now, but Google
pointed me to this page which has the prototypes:

http://bespin.cz/~ondras/html/classv8_1_1String.html

V8EXPORT int    WriteAscii (char *buffer, int start=0, int length=-1,
WriteHints hints=NO_HINTS) const
V8EXPORT int    WriteUtf8 (char *buffer, int length=-1, int
*nchars_ref=NULL, WriteHints hints=NO_HINTS) const

Returns:
The number of characters copied to the buffer excluding the null
terminator. For WriteUtf8: The number of bytes copied to the buffer
including the null terminator.

I don't really care about the number of characters, only the number of
bytes, which I then further process.

Chris Angelico

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to