Function rbuffer_map

Function Documentation

status_t rbuffer_map(struct rbuffer *rb, void (*f)(void *e))

Apply a function to all elements in the ringbuffer.

Parameters:
  • rb – The ringbuffer handle.

  • f – The mapping function, which CAN modify elements.

Returns:

status_t.