The new WriteUtf8V2 only writes as many bytes as there is space for, but
I'm not sure how to use this API.

If not all the characters were written, then how can the API user know how
much of the input string was written? The argument that told the embedder
how much was read has been removed. Instead, only the number of UTF 8 bytes
written is returned. Is the embedder expected to use that number to reverse
engineer how many characters were read?

It seems like this only works well if the output buffer is big enough to
write the string in a single operation.

-- 
Erik Corry

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-dev/CAHZxHpi%3Du65%2BcYXQbF%2B7UELyU3pAucgtbCxsNUfBiz_ZXZ%2BmMg%40mail.gmail.com.

Reply via email to