void binary_writer::create_new_buffer(size_t size, /*out*/blob& bb) { std::shared_ptr<char> ptr(new char[size]); bb.assign(ptr, 0, (int)size); }