reset

Discard all written bytes and prepare to build another packet.