Lists Home |
Date Index |
On Tue, Jan 20, 2004 at 06:45:09PM +0400, David Tolpin wrote:
> > void genxStartDocument(genxWriter w, FILE * file);
> While FILE * is 'standard', it is often incovenient to use it; I would prefer
> to have
> void genxStartDocument(genxWriter w, char *buf, int size, void (*bytesReady)(int n,void *userData))
> size is the size of the buffer, bytesReady is passed actual number of bytes available.
> Much more freedom to use.
I think there are two important use cases here: writing output to a
stream, and buffering output to a string (UTF8 or wchar_t). The
difference can be abstracted away within the guts of the genxWriter