Exemplo n.º 1
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     group = copyStringFromBytes(bytes, GROUP_NAME_LENGTH);
   }
 }
Exemplo n.º 2
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     message = copyStringFromBytes(bytes, CHAT_MESSAGE_LENGTH);
   }
 }
Exemplo n.º 3
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     mac = copyMacFromBytes(bytes);
     nickName = copyStringFromBytes(bytes, NICK_NAME_LENGTH);
     game = copyStringFromBytes(bytes, ADHOC_ID_LENGTH);
   }
 }