if (psize == 0) throw new java.lang.IllegalStateException("No package exists in XByteBuffer");
int compress = toInt(buf, START_DATA.length);
int size = toInt(buf, START_DATA.length +4);
byte[] data = new byte[size];
System.arraycopy(buf, START_DATA.length + 8, data, 0, size);
ClusterData cdata = new ClusterData() ;
cdata.setMessage(data);
cdata.setCompress(compress);
if (clearFromBuffer) {
int totalsize = START_DATA.length + 8 + size + END_DATA.length;
bufSize = bufSize - totalsize;
System.arraycopy(buf, totalsize, buf, 0, bufSize);
}