Improved performance by reducing all the byte[] copy methods. The XByteBuffer can grow dynamically and utilizie its internal array for direct writes