@@ -655,7 +655,8 @@ class Cdr_DllAPI FastCdr
655655 return *this ;
656656 }
657657
658- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
658+ throw exception::NotEnoughMemoryException (
659+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
659660 }
660661
661662 /* !
@@ -702,7 +703,8 @@ class Cdr_DllAPI FastCdr
702703 return *this ;
703704 }
704705
705- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
706+ throw exception::NotEnoughMemoryException (
707+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
706708 }
707709
708710 /* !
@@ -736,7 +738,8 @@ class Cdr_DllAPI FastCdr
736738 return *this ;
737739 }
738740
739- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
741+ throw exception::NotEnoughMemoryException (
742+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
740743 }
741744
742745 /* !
@@ -783,7 +786,8 @@ class Cdr_DllAPI FastCdr
783786 return *this ;
784787 }
785788
786- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
789+ throw exception::NotEnoughMemoryException (
790+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
787791 }
788792
789793 /* !
@@ -804,7 +808,8 @@ class Cdr_DllAPI FastCdr
804808 return *this ;
805809 }
806810
807- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
811+ throw exception::NotEnoughMemoryException (
812+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
808813 }
809814
810815 /* !
@@ -825,7 +830,8 @@ class Cdr_DllAPI FastCdr
825830 return *this ;
826831 }
827832
828- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
833+ throw exception::NotEnoughMemoryException (
834+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
829835 }
830836
831837 /* !
@@ -850,7 +856,8 @@ class Cdr_DllAPI FastCdr
850856 return *this ;
851857 }
852858
853- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
859+ throw exception::NotEnoughMemoryException (
860+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
854861 }
855862
856863 /* !
@@ -1306,7 +1313,8 @@ class Cdr_DllAPI FastCdr
13061313 return *this ;
13071314 }
13081315
1309- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
1316+ throw exception::NotEnoughMemoryException (
1317+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
13101318 }
13111319
13121320 /* !
@@ -1353,7 +1361,8 @@ class Cdr_DllAPI FastCdr
13531361 return *this ;
13541362 }
13551363
1356- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
1364+ throw exception::NotEnoughMemoryException (
1365+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
13571366 }
13581367
13591368 /* !
@@ -1387,7 +1396,8 @@ class Cdr_DllAPI FastCdr
13871396 return *this ;
13881397 }
13891398
1390- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
1399+ throw exception::NotEnoughMemoryException (
1400+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
13911401 }
13921402
13931403 /* !
@@ -1437,7 +1447,8 @@ class Cdr_DllAPI FastCdr
14371447 return *this ;
14381448 }
14391449
1440- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
1450+ throw exception::NotEnoughMemoryException (
1451+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
14411452 }
14421453
14431454 /* !
@@ -1458,7 +1469,8 @@ class Cdr_DllAPI FastCdr
14581469 return *this ;
14591470 }
14601471
1461- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
1472+ throw exception::NotEnoughMemoryException (
1473+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
14621474 }
14631475
14641476 /* !
@@ -1479,7 +1491,8 @@ class Cdr_DllAPI FastCdr
14791491 return *this ;
14801492 }
14811493
1482- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
1494+ throw exception::NotEnoughMemoryException (
1495+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
14831496 }
14841497
14851498 /* !
@@ -1503,7 +1516,8 @@ class Cdr_DllAPI FastCdr
15031516 return *this ;
15041517 }
15051518
1506- throw exception::NotEnoughMemoryException (exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
1519+ throw exception::NotEnoughMemoryException (
1520+ exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT );
15071521 }
15081522
15091523 /* !
@@ -2047,6 +2061,10 @@ class Cdr_DllAPI FastCdr
20472061 const std::array<_T, _Size>* array_t ,
20482062 size_t num_elements)
20492063 {
2064+ if (num_elements == 0 || array_t == nullptr )
2065+ {
2066+ return *this ;
2067+ }
20502068 return serialize_array (array_t ->data (), num_elements * array_t ->size ());
20512069 }
20522070
@@ -2062,6 +2080,10 @@ class Cdr_DllAPI FastCdr
20622080 std::array<_T, _Size>* array_t ,
20632081 size_t num_elements)
20642082 {
2083+ if (num_elements == 0 || array_t == nullptr )
2084+ {
2085+ return *this ;
2086+ }
20652087 return deserialize_array (array_t ->data (), num_elements * array_t ->size ());
20662088 }
20672089
0 commit comments