On 2012-01-19, at 2:12 PM, erik quanstrom wrote: > that seems a bit ... goofy. it would seem better for > bio to do this internally? surely there isn't code that > relies on this behavior?
Or maybe realloc() a larger buffer and try to carry on? There's no guarantee of buffer pointer consistency across B* calls, is there? Default to 8K (or whatever), and place an adjustable cap of, say, 128K, on the dynamic bsize. Given some XML stanzas I've seen lately, elastic buffers have a lot of appeal ...