750
|
1 #include "DataUpdate.h"
|
|
2 #include "Func.h"
|
|
3 #include "string.h"
|
|
4
|
|
5 /* これは必須 */
|
|
6 SchedDefineTask(DataUpdate);
|
|
7
|
|
8 static int
|
|
9 run(SchedTask *s, void *rbuf, void *wbuf)
|
|
10 {
|
985
|
11
|
|
12 long count = (long)s->get_param(0);
|
|
13 long id_base = (long)s->get_param(1);
|
1403
|
14 for(long i=0; i<count; i++) {
|
985
|
15 void *idata = (void*)s->get_input(rbuf, i);
|
|
16 long size = (long)s->get_inputSize(i);
|
|
17 void *global_data = (void*)s->global_get(id_base+i);
|
|
18 memcpy(global_data,idata,size);
|
|
19 }
|
750
|
20
|
|
21 return 0;
|
|
22 }
|