[cb]set __get_memory callbacks