@@ -28,7 +28,7 @@ struct Config
28
28
// /
29
29
static constexpr std::size_t IExecutor_Callback_FunctionMaxSize () // NOSONAR cpp:S799
30
30
{
31
- return sizeof ( void *) * 8 ;
31
+ return 64 ;
32
32
}
33
33
34
34
// / Defines footprint size reserved for a callback implementation.
@@ -38,7 +38,7 @@ struct Config
38
38
static constexpr std::size_t IExecutor_Callback_ReserveSize () // NOSONAR cpp:S799
39
39
{
40
40
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
41
- return sizeof ( void *) * 16 ;
41
+ return 160 ;
42
42
}
43
43
44
44
// / Defines various configuration parameters for the application layer.
@@ -52,7 +52,7 @@ struct Config
52
52
static constexpr std::size_t HeartbeatProducer_UpdateCallback_FunctionSize () // NOSONAR cpp:S799
53
53
{
54
54
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
55
- return sizeof ( void *) * 4 ;
55
+ return 64 ;
56
56
}
57
57
58
58
}; // Node
@@ -68,23 +68,23 @@ struct Config
68
68
static constexpr std::size_t ResponsePromiseBase_Callback_FunctionSize () // NOSONAR cpp:S799
69
69
{
70
70
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
71
- return sizeof ( void *) * 4 ;
71
+ return 64 ;
72
72
}
73
73
74
74
// / Defines max footprint of a callback function in use by the RPC server response continuation.
75
75
// /
76
76
static constexpr std::size_t ServerBase_ContinuationImpl_FunctionMaxSize () // NOSONAR cpp:S799
77
77
{
78
78
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
79
- return sizeof ( void *) * 5 ;
79
+ return 64 ;
80
80
}
81
81
82
82
// / Defines max footprint of a callback function in use by the RPC server request notification.
83
83
// /
84
84
static constexpr std::size_t ServerBase_OnRequestCallback_FunctionMaxSize () // NOSONAR cpp:S799
85
85
{
86
86
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
87
- return sizeof ( void *) * 5 ;
87
+ return 64 ;
88
88
}
89
89
90
90
// / Defines the size serialization/deserialization payload buffer which is considered as a small one,
@@ -103,7 +103,7 @@ struct Config
103
103
static constexpr std::size_t Subscriber_OnReceiveCallback_FunctionMaxSize () // NOSONAR cpp:S799
104
104
{
105
105
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
106
- return sizeof ( void *) * 4 ;
106
+ return 64 ;
107
107
}
108
108
};
109
109
@@ -117,7 +117,7 @@ struct Config
117
117
static constexpr std::size_t IMessageRxSession_OnReceiveCallback_FunctionMaxSize () // NOSONAR cpp:S799
118
118
{
119
119
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
120
- return sizeof ( void *) * 4 ;
120
+ return 64 ;
121
121
}
122
122
123
123
// / Defines max footprint of a callback function in use by the service RX session notification.
@@ -126,23 +126,23 @@ struct Config
126
126
static constexpr std::size_t ISvcRxSession_OnReceiveCallback_FunctionMaxSize () // NOSONAR cpp:S799
127
127
{
128
128
// / Size is chosen arbitrary, but it should be enough to store any lambda or function pointer.
129
- return sizeof ( void *) * 4 ;
129
+ return 64 ;
130
130
}
131
131
132
132
// / Defines max footprint of a platform-specific error implementation.
133
133
// /
134
134
static constexpr std::size_t PlatformErrorMaxSize ()
135
135
{
136
136
// / Size is chosen arbitrary, but it should be enough to store simple implementation.
137
- return sizeof ( void *) * 3 ;
137
+ return 32 ;
138
138
}
139
139
140
140
// / Defines max footprint of a storage implementation used by the scattered buffer.
141
141
// /
142
142
static constexpr std::size_t ScatteredBuffer_StorageVariantFootprint () // NOSONAR cpp:S799
143
143
{
144
144
// / Size is chosen arbitrary, but it should be enough to store any implementation.
145
- return sizeof ( void *) * 8 ;
145
+ return 64 ;
146
146
}
147
147
148
148
// / Defines various configuration parameters for the CAN transport sublayer.
@@ -154,7 +154,7 @@ struct Config
154
154
static constexpr std::size_t ICanTransport_TransientErrorHandlerMaxSize () // NOSONAR cpp:S799
155
155
{
156
156
// / Size is chosen arbitrary, but it should be enough to store simple lambda or function pointer.
157
- return sizeof ( void *) * 3 ;
157
+ return 32 ;
158
158
}
159
159
160
160
}; // Can
@@ -168,7 +168,7 @@ struct Config
168
168
static constexpr std::size_t IUdpTransport_TransientErrorHandlerMaxSize () // NOSONAR cpp:S799
169
169
{
170
170
// / Size is chosen arbitrary, but it should be enough to store simple lambda or function pointer.
171
- return sizeof ( void *) * 3 ;
171
+ return 32 ;
172
172
}
173
173
174
174
}; // Udp
0 commit comments