Re: Subversion generic streams
From: Jim Blandy <jimb_at_zwingli.cygnus.com>
Date: 2000-12-12 16:27:42 CET
Is it possible to design a decent generic stream system that is very
I agree that generic streams are graceful and fun. The reason I
Some dead code from the fs, just for discussion:
/* The type for a string contents baton. */
/* A read-like function for reading from a string content baton. */
/* How many bytes are we actually going to deliver? */
memcpy (buffer, rs->contents->data + rs->offset, provide);
...
struct read_string *rs;
rs = NEW (pool, struct read_string);
*contents_p = read_string_fn;
With generic streams, you'd have an additional structure here
|
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.