File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
platform/include/platform Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -263,15 +263,14 @@ class CircularBuffer {
263
263
/* *
264
264
* Pop multiple elements from the buffer.
265
265
*
266
- * @param dest The array which will receive the elements.
266
+ * @param dest The span that contains the buffer that will be used to store the elements.
267
267
*
268
- * @return The number of elements popped.
268
+ * @return The span with the size set to number of elements popped using the buffer passed in as the parameter .
269
269
*/
270
- CounterType pop (mbed::Span<T>& dest)
270
+ mbed::Span<T> pop (mbed::Span<T>& dest)
271
271
{
272
272
CounterType popped = pop (dest.data (), dest.size ());
273
- dest = mbed::make_Span (dest.data (), popped);
274
- return popped;
273
+ return mbed::make_Span (dest.data (), popped);
275
274
}
276
275
277
276
/* * Check if the buffer is empty.
You can’t perform that action at this time.
0 commit comments