Move duplicated code to a static function `static void ProcessOutputWriteBytes`. Remove not required static function definitions.
Move duplicated code to a static function `static void ProcessOutputWriteBytes`.
Remove not required static function definitions.

LegNeato/xctool,PSPDFKit-labs/xctool,PSPDFKit-labs/xctool,facebook/xctool,PSPDFKit-labs/xctool,AutoScout24/xctool,dvor/xctool,LegNeato/xctool,PSPDFKit-labs/xctool,dvor/xctool,facebook/xctool,facebook/xctool,yaoxiaoyong/xctool,facebook/xctool,AutoScout24/xctool,LegNeato/xctool,facebook/xctool,adamjernst/xctool,yaoxiaoyong/xctool,adamjernst/xctool,LegNeato/xctool,dvor/xctool,adamjernst/xctool,AutoScout24/xctool,facebook/xctool,yaoxiaoyong/xctool,adamjernst/xctool,yaoxiaoyong/xctool,PSPDFKit-labs/xctool,AutoScout24/xctool,dvor/xctool