Re: [AD] implementing seek

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


On Thu, Apr 8, 2010 at 11:24 AM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
On 2010-04-08, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
>
> Attached is my current favorite proposal:
>
> ALLEGRO_FILE *al_fopen_slice(ALLEGRO_FILE *fh, size_t initial_size,
> bool expandable)
>
> (The third parameter could be a set of flags instead.)
>
> It's meant to allow you to treat a subsection of a random access file
> as a new, self-contained file.

Nice.

The initial_size parameter should be int64_t.


Yes, and (U)INT_MAX would have been a very bad idea, video files or game data files can easily go above 2/4GB these days.



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