Code:
addValue(@vertices[0]);
should do it. I'm just not sure if the myProcedure disposes of the memory reservation after it ends. That might cause access violations later if so.
And i find addValue a little misleading name, when what it does would better be described as setValue. Whatever exists in the stream before "adding" will be replaced with new one.
edit: Fine, even the C++ code is just a dummy test code
Bookmarks