<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don&#39;t really like this, as one would rely on the caller to make sure<br>

that the given memory area is preinitialized properly.<br></blockquote><div>This is the only proper way one can design an API like this, as we often want to be able to pass the same sample object over and over again to avoid allocation.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just out of curiosity, is there a way in typelib, to get a preinitialized<br>
memory area for a type containing a virtual method ?<br></blockquote><div>No. Typelib is strictly limited to non-polymorphic types. Moreover, pocolog should never assume that the marshalled type has the same layout than the actual C++ type as we want to be able to read / upgrade old log files. The compatibility tests are done only when we want to hit a C++ layer (RTT or Qt)</div>
<div><br></div></div></div><div class="gmail_extra">Sylvain</div></div>