added helper that reads bytes of packet

Adding the bytes.Buffer version bloated the code slightly. I've added
a helper method that replicates the old functionality, so that changes
are more miniminal.