utils: Use memmove() to update stream buffers.