[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: FS: how to seek?

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-10-19 14:09:01 CEST

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.