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