packet: change the buffer API again

The "checkpoint" and "writei/readi" naming was pretty confusing.