distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::devices::anonymous_namespace{SerialPort.cpp} Namespace Reference

Functions

size_t copySingleBlock (SerialPort::CircularBuffer &source, SerialPort::CircularBuffer &destination)
 Copies single block from one circular buffer to another. More...
 

Function Documentation

◆ copySingleBlock()

size_t distortos::devices::anonymous_namespace{SerialPort.cpp}::copySingleBlock ( SerialPort::CircularBuffer source,
SerialPort::CircularBuffer destination 
)

Copies single block from one circular buffer to another.

Parameters
[in]sourceis a reference to circular buffer from which the data will be read
[out]destinationis a reference to circular buffer to which the data will be written
Returns
number of bytes read from source and written to destination
Here is the call graph for this function:
Here is the caller graph for this function: