10 ms·The second code snippet looks wrong, write(out, buf, (r - w)) should be write(out, buf + w, r - w)by dar8919 12y agoThe second code snippet looks wrong, write(out, buf, (r - w)) should be write(out, buf + w, r - w)