Re: [AD] Memfile support

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2004-05-07, Chris <kcat@xxxxxxxxxx> wrote:
> Sounds interesting to me. though you may want to change that to:
> 
> PACKFILE* pack_open_mem(void *data, char *mode, int size);
> so that you can specifiy reading/writing, packed/non-packed, 

Sounds as not very useful to be able to write to memory like that.
Appart from "who allocates memory and how much" problem, why would you
want to first translate your memory data to another memory buffer before
sending through net or writting to disk?

And if you really really needed to, what's the advantage of this over a
malloc'ed block?




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/