I want to start a UVM sequence and write into a memory from DPI-C with C_stimulus

I gone through c stimulus through register model to generate stimulus to the UVM. c_reg_read and c_reg_write are used to drive stimulus to the UVM. But my question is how to write into memory which is extended from uvm_mem using these methods ?

is set_c_stimulus_register_block valid for only uvm_reg or it can be used for uvm_mem also ?

Thanks