<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">I'm pretty sure that the [tab*] objects just point into existing arrays rather than copying them. Each time [tabread] receives a float, for instance, it checks to see if the array it has been set to read from exists, and if so, updates a pointer to the indicated index of the array, and grabs the float stored there.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 20, 2015 at 6:22 PM, oscar pablo di liscia <span dir="ltr"><<a href="mailto:odiliscia@gmail.com" target="_blank">odiliscia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi list.<br></div>I have a question on allocating data and reading it through an external.<br></div>As I have seen so far, the externals that reads arrays, as tabread, allocate<br></div>the data in their own memory space. As far as I can understand, this result<br>in a "double allocation" of the data. One in the array itself and the other one in the<br>internal memory space of the instance of the tabread external. <br></div>The point is that I would like to use an array to hold in memory a considerable<br></div>amount of data and to make it available to an arbitrary "reader" objects<br></div>without the need of allocating the data again in each one of the readers.<br></div></div>Is it possible to write an external that that reads data from an array "on the fly"<br></div>without the need of allocating the data in its own memory space? <br><div><div><div>Any help will be most appreciate.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><div><div><div><div><div><div><div><br clear="all"><div><div>Oscar Pablo Di Liscia</div></div>
</div></div></div></div></div></div></div></div></font></span></div></div></div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>