Hacker News new | ask | show | jobs
by mjpt777 5094 days ago
The byte[] buffer is deliberate because that is what will typically be passed to the network or IO device, so easier integration.

If you check the code you will see the buffer is only allocated once so the cost is not an issue.