Lines Matching refs:msg
68 * Does not modify or store a reference to the msg array.
70 Header(byte[] msg, int msgLen) throws NamingException {
71 decode(msg, msgLen);
76 * reference to the msg array.
78 private void decode(byte[] msg, int msgLen) throws NamingException {
81 int pos = 0; // current offset into msg
88 xid = getShort(msg, pos);
92 short flags = (short) getShort(msg, pos);
103 numQuestions = getShort(msg, pos);
105 numAnswers = getShort(msg, pos);
107 numAuthorities = getShort(msg, pos);
109 numAdditionals = getShort(msg, pos);
119 * Returns the 2-byte unsigned value at msg[pos]. The high
122 private static int getShort(byte[] msg, int pos) {
123 return (((msg[pos] & 0xFF) << 8) |
124 (msg[pos + 1] & 0xFF));