mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 17:17:44 -04:00
Fix inaccuracies in prvWriteBytesToBuffer description
This commit is contained in:
parent
1d4d16fd54
commit
cda43dd4d8
1 changed files with 3 additions and 4 deletions
|
@ -159,10 +159,9 @@ typedef struct StreamBufferDef_t /*lint !e9058 Style convention
|
|||
static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) PRIVILEGED_FUNCTION;
|
||||
|
||||
/*
|
||||
* Add xCount bytes from pucData into the pxStreamBuffer message buffer.
|
||||
* Returns the number of bytes written, which will either equal xCount in the
|
||||
* success case, or 0 if there was not enough space in the buffer (in which case
|
||||
* no data is written into the buffer).
|
||||
* Add xCount bytes from pucData into the pxStreamBuffer's data storage area.
|
||||
* Assumes there is enough free space in the buffer.
|
||||
* Always returns xCount, which is the number of bytes written.
|
||||
*/
|
||||
static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer,
|
||||
const uint8_t * pucData,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue