@@ -28,7 +28,7 @@ struct Config
2828 // /
2929 static constexpr std::size_t IExecutor_Callback_FunctionMaxSize () // NOSONAR cpp:S799
3030 {
31- return sizeof ( void *) * 8 ;
31+ return 64 ;
3232 }
3333
3434 // / Defines footprint size reserved for a callback implementation.
@@ -38,7 +38,7 @@ struct Config
3838 static constexpr std::size_t IExecutor_Callback_ReserveSize () // NOSONAR cpp:S799
3939 {
4040 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
41- return sizeof ( void *) * 16 ;
41+ return 160 ;
4242 }
4343
4444 // / Defines various configuration parameters for the application layer.
@@ -52,7 +52,7 @@ struct Config
5252 static constexpr std::size_t HeartbeatProducer_UpdateCallback_FunctionSize () // NOSONAR cpp:S799
5353 {
5454 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
55- return sizeof ( void *) * 4 ;
55+ return 64 ;
5656 }
5757
5858 }; // Node
@@ -68,23 +68,23 @@ struct Config
6868 static constexpr std::size_t ResponsePromiseBase_Callback_FunctionSize () // NOSONAR cpp:S799
6969 {
7070 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
71- return sizeof ( void *) * 4 ;
71+ return 64 ;
7272 }
7373
7474 // / Defines max footprint of a callback function in use by the RPC server response continuation.
7575 // /
7676 static constexpr std::size_t ServerBase_ContinuationImpl_FunctionMaxSize () // NOSONAR cpp:S799
7777 {
7878 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
79- return sizeof ( void *) * 5 ;
79+ return 64 ;
8080 }
8181
8282 // / Defines max footprint of a callback function in use by the RPC server request notification.
8383 // /
8484 static constexpr std::size_t ServerBase_OnRequestCallback_FunctionMaxSize () // NOSONAR cpp:S799
8585 {
8686 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
87- return sizeof ( void *) * 5 ;
87+ return 64 ;
8888 }
8989
9090 // / Defines the size serialization/deserialization payload buffer which is considered as a small one,
@@ -103,7 +103,7 @@ struct Config
103103 static constexpr std::size_t Subscriber_OnReceiveCallback_FunctionMaxSize () // NOSONAR cpp:S799
104104 {
105105 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
106- return sizeof ( void *) * 4 ;
106+ return 64 ;
107107 }
108108 };
109109
@@ -117,7 +117,7 @@ struct Config
117117 static constexpr std::size_t IMessageRxSession_OnReceiveCallback_FunctionMaxSize () // NOSONAR cpp:S799
118118 {
119119 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
120- return sizeof ( void *) * 4 ;
120+ return 64 ;
121121 }
122122
123123 // / Defines max footprint of a callback function in use by the service RX session notification.
@@ -126,23 +126,23 @@ struct Config
126126 static constexpr std::size_t ISvcRxSession_OnReceiveCallback_FunctionMaxSize () // NOSONAR cpp:S799
127127 {
128128 // / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
129- return sizeof ( void *) * 4 ;
129+ return 64 ;
130130 }
131131
132132 // / Defines max footprint of a platform-specific error implementation.
133133 // /
134134 static constexpr std::size_t PlatformErrorMaxSize ()
135135 {
136136 // / Size is chosen arbitrary, but it should be enough to store simple implementation.
137- return sizeof ( void *) * 3 ;
137+ return 32 ;
138138 }
139139
140140 // / Defines max footprint of a storage implementation used by the scattered buffer.
141141 // /
142142 static constexpr std::size_t ScatteredBuffer_StorageVariantFootprint () // NOSONAR cpp:S799
143143 {
144144 // / Size is chosen arbitrary, but it should be enough to store any implementation.
145- return sizeof ( void *) * 8 ;
145+ return 64 ;
146146 }
147147
148148 // / Defines various configuration parameters for the CAN transport sublayer.
@@ -154,7 +154,7 @@ struct Config
154154 static constexpr std::size_t ICanTransport_TransientErrorHandlerMaxSize () // NOSONAR cpp:S799
155155 {
156156 // / Size is chosen arbitrary, but it should be enough to store simple lambda or function pointer.
157- return sizeof ( void *) * 3 ;
157+ return 32 ;
158158 }
159159
160160 }; // Can
@@ -168,7 +168,7 @@ struct Config
168168 static constexpr std::size_t IUdpTransport_TransientErrorHandlerMaxSize () // NOSONAR cpp:S799
169169 {
170170 // / Size is chosen arbitrary, but it should be enough to store simple lambda or function pointer.
171- return sizeof ( void *) * 3 ;
171+ return 32 ;
172172 }
173173
174174 }; // Udp
0 commit comments