コード例 #1
0
 public int size() {
   int size = 0;
   size += SDRUtil.sizeInt(clientId);
   size += SDRUtil.sizeInt(exeUnitHnd);
   size += varAccess.size();
   return size;
 }
コード例 #2
0
  public void write(SDROutputStream out, SDRContext context) throws SDRException, IOException {
    /** Added by SdrGen */
    int actMember = 0;

    if (mMemberDone == actMember) {
      out.writeInt(clientId, context);
      if (!context.done) return;
      mMemberDone++;
    }
    actMember++;
    if (mMemberDone == actMember) {
      out.writeInt(exeUnitHnd, context);
      if (!context.done) return;
      mMemberDone++;
    }
    actMember++;
    if (mMemberDone == actMember) {
      varAccess.write(out, context);
      if (!context.done) return;
      mMemberDone++;
      varAccess.reset(); // done for multiple use of input parameters
    }
    actMember++;
  }
コード例 #3
0
  public void read(SDRInputStream in, SDRContext context) throws SDRException, IOException {
    /** Added by SdrGen */
    int actMember = 0;

    if (mMemberDone == actMember) {
      clientId = in.readInt(context);
      if (!context.done) return;
      mMemberDone++;
    }
    actMember++;
    if (mMemberDone == actMember) {
      exeUnitHnd = in.readInt(context);
      if (!context.done) return;
      mMemberDone++;
    }
    actMember++;
    if (mMemberDone == actMember) {
      varAccess.read(in, context);
      if (!context.done) return;
      mMemberDone++;
    }
    actMember++;
  }
コード例 #4
0
 public void reset() {
   mMemberDone = 0;
   varAccess.reset();
 }