Lines Matching defs:encodedMsg
272 byte[] encodedMsg = new byte[length];
275 encodedMsg[0] = type;
278 encodedMsg[1] = (byte)ProtocolVersion.getCurrentVersion();
282 pos = addByteArray(changeNumberByte, encodedMsg, pos);
285 encodedMsg[pos++] = (assuredFlag ? (byte) 1 : 0);
288 encodedMsg[pos++] = assuredMode.getValue();
291 encodedMsg[pos++] = safeDataLevel;
293 return encodedMsg;
300 * @param encodedMsg the encoded form of the UpdateMsg.
302 * @throws DataFormatException if the encodedMsg does not contain a valid
305 protected int decodeHeader(byte type, byte[] encodedMsg)
312 if (!(type == encodedMsg[0]))
314 + encodedMsg[0]);
317 protocolVersion = (short)encodedMsg[1];
323 int length = getNextLength(encodedMsg, pos);
324 String changenumberStr = new String(encodedMsg, pos, length, "UTF-8");
329 assuredFlag = encodedMsg[pos++] == 1;
332 assuredMode = AssuredMode.valueOf(encodedMsg[pos++]);
335 safeDataLevel = encodedMsg[pos++];