File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ static const char *MANUFACTURER = "Honda";
4848static const char *MODEL = " Civic VTi" ;
4949static const char *ACTIVATION_CODE = " deadbeef" ;
5050static const char *ADDED5 = " feedface" ;
51+ static const char *VARCHARDATA = " this is variable length data with `char` data type" ;
5152
5253static const std::uint8_t PERFORMANCE_FIGURES_COUNT = 2 ;
5354static const std::uint8_t FUEL_FIGURES_COUNT = 3 ;
@@ -161,7 +162,8 @@ class DtoTest : public testing::Test
161162 car.putManufacturer (MANUFACTURER, static_cast <int >(strlen (MANUFACTURER)))
162163 .putModel (MODEL, static_cast <int >(strlen (MODEL)))
163164 .putActivationCode (ACTIVATION_CODE, static_cast <int >(strlen (ACTIVATION_CODE)))
164- .putAdded5 (ADDED5, static_cast <int >(strlen (ADDED5)));
165+ .putAdded5 (ADDED5, static_cast <int >(strlen (ADDED5)))
166+ .putVarCharData (VARCHARDATA, static_cast <int >(strlen (VARCHARDATA)));
165167
166168 return car.encodedLength ();
167169 }
Original file line number Diff line number Diff line change 2828 <type name =" length" primitiveType =" uint32" maxValue =" 1073741824" />
2929 <type name =" varData" primitiveType =" uint8" length =" 0" />
3030 </composite >
31+ <composite name =" varCharDataEncoding" >
32+ <type name =" length" primitiveType =" uint16" />
33+ <type name =" varData" primitiveType =" char" length =" 0" characterEncoding =" ASCII" />
34+ </composite >
3135 </types >
3236 <types >
3337 <type name =" ModelYear" primitiveType =" uint16" />
122126 <data name =" model" id =" 19" type =" varStringEncoding" />
123127 <data name =" activationCode" id =" 20" type =" varDataEncoding" />
124128 <data name =" added5" id =" 25" type =" varStringEncoding" sinceVersion =" 5" />
129+ <data name =" varCharData" id =" 30" type =" varCharDataEncoding" sinceVersion =" 6" />
125130 </sbe : message >
126131
127132 <sbe : message name =" Keywords" id =" 3" >
You can’t perform that action at this time.
0 commit comments