示例#1
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     ip = copyInt32FromBytes(bytes);
   }
 }
示例#2
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyToBytes(bytes, nickName, NICK_NAME_LENGTH);
   copyToBytes(bytes, mac);
   copyInt32ToBytes(bytes, ip);
 }
示例#3
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     message = copyStringFromBytes(bytes, CHAT_MESSAGE_LENGTH);
     nickName = copyStringFromBytes(bytes, NICK_NAME_LENGTH);
   }
 }
示例#4
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     group = copyStringFromBytes(bytes, GROUP_NAME_LENGTH);
     mac = copyMacFromBytes(bytes);
   }
 }
示例#5
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     nickName = copyStringFromBytes(bytes, NICK_NAME_LENGTH);
     mac = copyMacFromBytes(bytes);
     ip = copyInt32FromBytes(bytes);
   }
 }
示例#6
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyToBytes(bytes, message, CHAT_MESSAGE_LENGTH);
   copyToBytes(bytes, nickName, NICK_NAME_LENGTH);
 }
示例#7
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyInt32ToBytes(bytes, ip);
 }
示例#8
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyToBytes(bytes, group, GROUP_NAME_LENGTH);
   copyToBytes(bytes, mac);
 }
示例#9
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyToBytes(bytes, mac);
 }