예제 #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);
 }