Re: [AD] implementing seek |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] implementing seek
- From: Matthew Leverton <meffer@xxxxxxxxxx>
- Date: Wed, 7 Apr 2010 23:43:27 -0500
On Wed, Apr 7, 2010 at 11:31 PM, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> But you just told it to seek to the end, the slice obviously has data in it,
> so it should seek to the end.
>
It depends on your perspective. I don't know that either view can be
considered "correct," In fact, it may need to be something that the
programmer chooses. e.g., perhaps:
fp = al_fopen_slice(fp, 0); // unbounded, parent size is not considered
fp = al_fopen_slice(fp, 1 .. UINT_MAX - 1); // bounded
fp = al_fopen_slice(fp, UINT_MAX); // unbounded, parent size is taken
into consideration
--
Matthew Leverton