title: How to preallocate a buffer of certain size in Python?
body: <p>I have an use case where I will want to combine multiple chunk of buffers into a single buffer. In case of C/C++/Java I will preallocate a buffer whose size is the same as the combined size of the source buffers, then copy the source buffers to it. How can it be done in Python in similar way. I want to avoid creating multiple smaller intermediate buffers that may have a bad impact on performance.</p>