On Thu, Oct 19, 2000 at 04:50:34AM -0700, Greg Stein wrote:
> Jim,
>
> It is possible for an HTTP GET to ask for *portions* of a resource on the
> server. This would correspond to a seek operation on an svn_fs_file_t.
>
> I would guess that we could implement a function such as:
>
> svn_error_t * svn_fs_file_seek (svn_fs_file_t *file,
> void *contents_baton,
> apr_off_t abs_position);
>
> Where CONTENTS_BATON was returned by svn_fs_file_contents().
>
> I could then seek-then-read for each of the portions requested.
>
> Note: I'm only looking for seek functionality for *reading*. It is also
> possible to modify a portion of a resource, but I can manage that
> through proper application of deltas.
One extra note: when I open the file for reading, I do have a flag that says
whether I intend to seek or not (allowing you to handle the file a bit
differently for performance reasons).
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:12 2006