Copy data from another memory */
| 94 | |
| 95 | /** Copy data from another memory */ |
| 96 | void copy(const Memory &m) { |
| 97 | resize(m.count); |
| 98 | memcpy(host_ptr, m.host_ptr, count * sizeof(Data)); |
| 99 | } |
| 100 | |
| 101 | /** Copy data from a pointer */ |
| 102 | void copy(void *ptr, Index _count) { |
no outgoing calls
no test coverage detected