16 v_copyin_result result = V_COPYIN_RESULT_OK;
21 static c_type type0 = NULL;
22 c_type subtype0 = NULL;
27 subtype0 = c_type(c_metaResolve (c_metaObject(base),
"c_octet"));
28 type0 = c_metaSequenceTypeNew(c_metaObject(base),
"C_SEQUENCE<c_octet>",subtype0,0);
31 length0 = (*from).length();
32 #ifdef OSPL_BOUNDS_CHECK
33 dest0 = (c_octet *)c_newSequence_s(c_collectionType(type0), length0);
37 buf0 = (
const c_octet *)(*from).get_buffer();
38 memcpy (dest0,buf0,length0*
sizeof(*dest0));
41 result = V_COPYIN_RESULT_OUT_OF_MEMORY;
44 dest0 = (c_octet *)c_newSequence_s(c_collectionType(type0), length0);
48 buf0 = (
const c_octet *)(*from).get_buffer();
49 memcpy (dest0,buf0,length0*
sizeof(*dest0));
52 result = V_COPYIN_RESULT_OUT_OF_MEMORY;
61 const struct ::Knowledge::Update *from,
64 v_copyin_result result = V_COPYIN_RESULT_OK;
67 #ifdef OSPL_BOUNDS_CHECK
71 result = V_COPYIN_RESULT_OUT_OF_MEMORY;
74 OS_REPORT (OS_ERROR,
"copyIn", 0,
"Member 'Knowledge::Update.originator' of type 'c_string' is NULL.");
75 result = V_COPYIN_RESULT_INVALID;
80 result = V_COPYIN_RESULT_OUT_OF_MEMORY;
83 if(V_COPYIN_RESULT_IS_OK(result)){
88 #ifdef OSPL_BOUNDS_CHECK
92 result = V_COPYIN_RESULT_OUT_OF_MEMORY;
95 OS_REPORT (OS_ERROR,
"copyIn", 0,
"Member 'Knowledge::Update.madara_id' of type 'c_string' is NULL.");
96 result = V_COPYIN_RESULT_INVALID;
101 result = V_COPYIN_RESULT_OUT_OF_MEMORY;
108 to->
ttl = (c_ulong)from->
ttl;
120 const c_octet *src0 = (
const c_octet *)(*from);
122 size0 = c_arraySize(c_sequence(src0));
126 buf0 = (c_octet *)(*to).get_buffer();
127 memcpy ((
void *)buf0,src0,size0*
sizeof(*buf0));
137 struct ::Knowledge::Update *to = (struct ::Knowledge::Update *)_to;
146 to->
type = (::DDS::ULong)from->
type;
149 to->
ttl = (::DDS::ULong)from->
ttl;
v_copyin_result __Knowledge_seq_oct__copyIn(c_base base, const ::Knowledge::seq_oct *from, _Knowledge_seq_oct *to)
DDS_DCPSUFLSeq< DDS::Octet, struct seq_oct_uniq_ > seq_oct
void __Knowledge_seq_oct__copyOut(const void *_from, void *_to)
c_sequence _Knowledge_seq_oct
DDS::String_mgr madara_id
void __Knowledge_Update__copyOut(const void *_from, void *_to)
DDS::String_mgr originator
v_copyin_result __Knowledge_Update__copyIn(c_base base, const struct::Knowledge::Update *from, struct _Knowledge_Update *to)
_Knowledge_seq_oct buffer