Package remote.protocol

Examples of remote.protocol.MsgUint16


    moteIds = new ArrayList();
  }

  public void read(DataInput is) throws Exception
  {
    MsgUint16 count = new MsgUint16();
    MsgUint32 moteId;
    clear();
    count.read(is);
    for (int i=0; i<count.getValue(); i++)
    {
      moteId = new MsgUint32();
      moteId.read(is);
      this.addMoteId(moteId);
    }
View Full Code Here


    }
  }

  public void write(DataOutput os) throws Exception
  {
    MsgUint16 count = new MsgUint16(moteIds.size());
    MsgUint32 moteId;
    count.write(os);
    for (int i=0; i<count.getValue(); i++)
    {
      moteId = (MsgUint32)moteIds.get(i);
      moteId.write(os);
    }
  }
View Full Code Here

TOP

Related Classes of remote.protocol.MsgUint16

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.