+
+int odr_set_of(ODR o, Odr_fun type, void *p, int *num, const char *name)
+{
+ if (!odr_set_begin(o, p, 0, name)) {
+ if (o->direction == ODR_DECODE)
+ *num = 0;
+ return 0;
+ }
+ return odr_sequence_x (o, type, p, num);
+}
+
+int odr_sequence_of(ODR o, Odr_fun type, void *p, int *num,
+ const char *name)
+{
+ if (!odr_sequence_begin(o, p, 0, name)) {
+ if (o->direction == ODR_DECODE)
+ *num = 0;
+ return 0;
+ }
+ return odr_sequence_x (o, type, p, num);
+}
+