|
From: | Alex Shulgin |
Subject: | Re: [pngpp-devel] Png stream size |
Date: | Thu, 6 Dec 2012 00:02:44 +0200 |
Hello,
I want to write a png file to a memory buffer using png::image::write(std::ostream& stream) and boost::iostreams::stream<boost::iostreams::array_sink> to make stream adapter to the array. I'm wondering if there's a way to know how large of a buffer to allocate in advance, or if there's a better way to write to an array rather than straight to a file?
[Prev in Thread] | Current Thread | [Next in Thread] |