MCPcopy Create free account
hub / github.com/MariaDB/server / copy_ref_ptr_array

Method copy_ref_ptr_array

sql/sql_select.h:1819–1828  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

arrayMethod · 0.80
sizeMethod · 0.45
element_sizeMethod · 0.45

Tested by

no test coverage detected