@@ -293,15 +293,15 @@ size_t uxStreamBufferAdd( StreamBuffer_t * const pxBuffer,
293293 const size_t uxFirst = FreeRTOS_min_size_t ( uxLength - uxNextHead , uxCount );
294294
295295 /* Write as many bytes as can be written in the first write. */
296- ( void ) memcpy ( & ( pxBuffer -> ucArray [ uxNextHead ] ), pucData , uxFirst );
296+ ( void ) pvPortMemCpyStreamBuffer ( & ( pxBuffer -> ucArray [ uxNextHead ] ), pucData , uxFirst );
297297
298298 /* If the number of bytes written was less than the number that
299299 * could be written in the first write... */
300300 if ( uxCount > uxFirst )
301301 {
302302 /* ...then write the remaining bytes to the start of the
303303 * buffer. */
304- ( void ) memcpy ( pxBuffer -> ucArray , & ( pucData [ uxFirst ] ), uxCount - uxFirst );
304+ ( void ) pvPortMemCpyStreamBuffer ( pxBuffer -> ucArray , & ( pucData [ uxFirst ] ), uxCount - uxFirst );
305305 }
306306 }
307307
@@ -394,14 +394,14 @@ size_t uxStreamBufferGet( StreamBuffer_t * const pxBuffer,
394394
395395 /* Obtain the number of bytes it is possible to obtain in the first
396396 * read. */
397- ( void ) memcpy ( pucData , & ( pxBuffer -> ucArray [ uxNextTail ] ), uxFirst );
397+ ( void ) pvPortMemCpyStreamBuffer ( pucData , & ( pxBuffer -> ucArray [ uxNextTail ] ), uxFirst );
398398
399399 /* If the total number of wanted bytes is greater than the number
400400 * that could be read in the first read... */
401401 if ( uxCount > uxFirst )
402402 {
403403 /* ...then read the remaining bytes from the start of the buffer. */
404- ( void ) memcpy ( & ( pucData [ uxFirst ] ), pxBuffer -> ucArray , uxCount - uxFirst );
404+ ( void ) pvPortMemCpyStreamBuffer ( & ( pucData [ uxFirst ] ), pxBuffer -> ucArray , uxCount - uxFirst );
405405 }
406406 }
407407
0 commit comments