File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
platform/include/platform Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -157,16 +157,6 @@ class CircularBuffer {
157
157
core_util_critical_section_exit ();
158
158
}
159
159
160
- /* * Push the transaction to the buffer. This overwrites the buffer if it's full.
161
- *
162
- * @param src Data to be pushed to the buffer.
163
- */
164
- template <CounterType N>
165
- void push (T (&src)[N])
166
- {
167
- push (src, N);
168
- }
169
-
170
160
/* * Push the transaction to the buffer. This overwrites the buffer if it's full.
171
161
*
172
162
* @param src Data to be pushed to the buffer.
@@ -247,27 +237,14 @@ class CircularBuffer {
247
237
return data_popped;
248
238
}
249
239
250
- /* *
251
- * Pop multiple elements from the buffer.
252
- *
253
- * @param dest The array which will receive the elements.
254
- *
255
- * @return The number of elements popped.
256
- */
257
- template <CounterType N>
258
- CounterType pop (T (&dest)[N])
259
- {
260
- return pop (dest, N);
261
- }
262
-
263
240
/* *
264
241
* Pop multiple elements from the buffer.
265
242
*
266
243
* @param dest The span that contains the buffer that will be used to store the elements.
267
244
*
268
245
* @return The span with the size set to number of elements popped using the buffer passed in as the parameter.
269
246
*/
270
- mbed::Span<T> pop (mbed::Span<T>& dest)
247
+ mbed::Span<T> pop (const mbed::Span<T>& dest)
271
248
{
272
249
CounterType popped = pop (dest.data (), dest.size ());
273
250
return mbed::make_Span (dest.data (), popped);
You can’t perform that action at this time.
0 commit comments