Skip to content

Commit 699810b

Browse files
committed
Refs #23504: Fix tests, implement (de)serialize_array() on InnerBasicTypesShortStruct
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
1 parent b9baed5 commit 699810b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/xcdr/basic_types.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ void serialize(
112112
cdr.end_serialize_type(current_status);
113113
}
114114

115+
template<>
116+
void serialize_array(
117+
Cdr& cdr,
118+
InnerBasicTypesShortStruct const* array_ptr,
119+
unsigned long array_size)
120+
121+
{
122+
cdr.serialize_array(array_ptr, array_size);
123+
}
124+
115125
template<>
116126
void deserialize(
117127
Cdr& cdr,
@@ -157,6 +167,16 @@ void deserialize(
157167
});
158168
}
159169

170+
template<>
171+
void deserialize_array(
172+
Cdr& cdr,
173+
InnerBasicTypesShortStruct* array_ptr,
174+
unsigned long array_size)
175+
176+
{
177+
cdr.deserialize_array(array_ptr, array_size);
178+
}
179+
160180
} // namespace fastcdr
161181
} // namespace eprosima
162182

0 commit comments

Comments
 (0)