code: static int parseCurrentElements(final byte[] data)
  	{
  		int elems = 0;
  		for (int i = 0; i < data.length; ++i)
  			elems = elems << 8 | (data[i] & 0xff);
  		return elems;
  	}
  
  	void setPDT(final int type)
  	{
  		pdt = type;
  	}
  }
docs: set 2 or 4 byte data array with element count, big endian