httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim Zobel <>
Subject Re: splitting a string...
Date Mon, 01 Jan 2007 09:51:58 GMT
Am Sonntag, den 31.12.2006, 19:02 -0700 schrieb Joe Lewis:
> ... split bucket brigades ...

You mean splitting buckets, not brigades, do you? To avoid a
misunderstanding here are the relevant API functions.

>>From apr_buckets.h
 * Split one bucket in two.
 * @param e The bucket to split
 * @param point The offset to split the bucket at
#define apr_bucket_split(e,point) (e)->type->split(e, point)

 * Split one bucket in two at the specified position by duplicating
 *  the bucket structure (not the data) and modifying any necessary
 *  start/end/offset information.  If it's not possible to do this
 *  for the bucket type (perhaps the length of the data is
 *  as with pipe and socket buckets), then APR_ENOTIMPL is returned.
 * @param e The bucket to split
 * @param point The offset of the first byte in the new bucket
apr_status_t (*split)(apr_bucket *e, apr_size_t point);

View raw message