`ch` isn't a char, it should be renamed. `b` or `byte` perhaps.