Ejemplo n.º 1
0
    /**
     * Returns the number of bytes the used data members of the class occupies in the buffer. This
     * is not the number of bytes the data type occupies in Java, but the bytes expected on the
     * wire.
     *
     * @return
     */
    public long getSize() {
      long size = 0;

      size += m_RejectEventRequestRec.getSize();

      return size;
    }
Ejemplo n.º 2
0
    public void decode(ByteBuffer bytes, int pos) {

      if (bytes.array() == null) {
        return;
      }
      if (bytes.order() != ByteOrder.LITTLE_ENDIAN) {
        bytes.order(ByteOrder.LITTLE_ENDIAN);
      }

      m_RejectEventRequestRec.decode(bytes, pos);
      pos += m_RejectEventRequestRec.getSize();
    }