Overwrites one slice with the contents of another slice. In the normal case, dst and src have the same size(). However: the rollup slices may have smaller size than slice_sz. */
| 1817 | However: the rollup slices may have smaller size than slice_sz. |
| 1818 | */ |
| 1819 | void copy_ref_ptr_array(Ref_ptr_array dst_arr, Ref_ptr_array src_arr) |
| 1820 | { |
| 1821 | DBUG_ASSERT(dst_arr.size() >= src_arr.size()); |
| 1822 | if (src_arr.size() == 0) |
| 1823 | return; |
| 1824 | |
| 1825 | void *dest= dst_arr.array(); |
| 1826 | const void *src= src_arr.array(); |
| 1827 | memcpy(dest, src, src_arr.size() * src_arr.element_size()); |
| 1828 | } |
| 1829 | |
| 1830 | /// Overwrites 'ref_ptrs' and remembers the source as 'current'. |
| 1831 | void set_items_ref_array(Ref_ptr_array src_arr) |
nothing calls this directly
no test coverage detected