|Seems I've found a workaround, at least.
Instead of using
ref byte or
out byte I've tried using
byte as method return value. This requires a little array copying but gives full speed to the caller.
By adjusting the maximum buffer size I was able to get transfer rates very close to what you can achive when copying a file with Explorer.
Nevertheless, I don't understand why the framework has such poor performance with
ref byte parameters...
But thanks for taking your time!
Black holes are the places where god divided by 0...