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