コード例 #1
0
 /**
  * Read the role vendor data from the ChannelBuffer
  *
  * @param data the channel buffer from which we're deserializing
  * @param length the length to the end of the enclosing message
  */
 public void readFrom(ChannelBuffer data, int length) {
   super.readFrom(data, length);
   role = data.readInt();
 }
コード例 #2
0
 /**
  * Write the role vendor data to the ChannelBuffer
  *
  * @param data the channel buffer to which we're serializing
  */
 public void writeTo(ChannelBuffer data) {
   super.writeTo(data);
   data.writeInt(role);
 }