replaced manual loop for copying byte array with System.arraycopy - zekikez
resize buffer size if packet length is greater
Merge pull request #5 from xolus/master

replaced manual loop for copying byte array with System.arraycopy