Minor changes, avoid recursive approach in readPacket()
Remove the buffer copying, no longer necessary
Avoid buffer copying for non-splitting packets
Merge pull request #170 from cxmcc/minor

Replace recursive approach with iterative approach for readPacket()