Re: [libvirt] [PATCH 04/35] util: bitmap: Add virBitmapToDataBuf that does not allocate the buffer

2015-06-01 Thread Martin Kletzander
On Fri, May 29, 2015 at 03:33:25PM +0200, Peter Krempa wrote: Since some functions can be optimized by reusing the buffers that they already have instead of allocating and copying new ones, lets split virBitmapToData to two functions where one only converts the data and the second one is a

[libvirt] [PATCH 04/35] util: bitmap: Add virBitmapToDataBuf that does not allocate the buffer

2015-05-29 Thread Peter Krempa
Since some functions can be optimized by reusing the buffers that they already have instead of allocating and copying new ones, lets split virBitmapToData to two functions where one only converts the data and the second one is a wrapper that allocates the buffer if necessary. ---