| 1236 | /*-----------------------------------------------------------*/ |
| 1237 | |
| 1238 | static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer ) |
| 1239 | { |
| 1240 | /* Returns the distance between xTail and xHead. */ |
| 1241 | size_t xCount; |
| 1242 | |
| 1243 | xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead; |
| 1244 | xCount -= pxStreamBuffer->xTail; |
| 1245 | |
| 1246 | if( xCount >= pxStreamBuffer->xLength ) |
| 1247 | { |
| 1248 | xCount -= pxStreamBuffer->xLength; |
| 1249 | } |
| 1250 | else |
| 1251 | { |
| 1252 | mtCOVERAGE_TEST_MARKER(); |
| 1253 | } |
| 1254 | |
| 1255 | return xCount; |
| 1256 | } |
| 1257 | /*-----------------------------------------------------------*/ |
| 1258 | |
| 1259 | static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer, |
no outgoing calls
no test coverage detected