meiersi / blaze-builder

Efficient serialization of Haskell values to lazy bytestrings with a large average chunk size.
http://jaspervdj.be/blaze
Other
21 stars 22 forks source link

Fix reserved space computation in 'encodeChunked' #6

Open meiersi opened 13 years ago

meiersi commented 13 years ago

The required space could be larger than expected after the buffer is handed over. This in turn increases the space to be reserved for encoding the chunk size, which in turn might lead to not enough bytes being handed over to the inner builder.