fix buffercopy process data bug

fix: onprocess will be called twice when signle file is small