Exemplo n.º 1
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     message = copyStringFromBytes(bytes, CHAT_MESSAGE_LENGTH);
   }
 }
Exemplo n.º 2
0
 @Override
 protected void init(byte[] bytes, int length) {
   super.init(bytes, length);
   if (length >= getLength()) {
     group = copyStringFromBytes(bytes, GROUP_NAME_LENGTH);
   }
 }
Exemplo n.º 3
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyToBytes(bytes, mac);
   copyToBytes(bytes, nickName, NICK_NAME_LENGTH);
   copyToBytes(bytes, game, ADHOC_ID_LENGTH);
 }
Exemplo n.º 4
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);
   }
 }
Exemplo n.º 5
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyToBytes(bytes, message, CHAT_MESSAGE_LENGTH);
 }
Exemplo n.º 6
0
 @Override
 protected void getBytes(byte[] bytes) {
   super.getBytes(bytes);
   copyToBytes(bytes, group, GROUP_NAME_LENGTH);
 }