MCPcopy Index your code
hub / github.com/apache/tomcat / getLongInt

Method getLongInt

java/org/apache/coyote/ajp/AjpMessage.java:325–335  ·  view source on GitHub ↗

Read a 32 bits integer from packet, and advance the read position past it. Integers are encoded as four unsigned bytes with the high-order byte first, and, as far as I can tell, in little-endian order within each byte. @return The long value read from the message

()

Source from the content-addressed store, hash-verified

323 * @return The long value read from the message
324 */
325 public int getLongInt() {
326 int b1 = buf[pos++] & 0xFF; // No swap, Java order
327 b1 <<= 8;
328 b1 |= (buf[pos++] & 0xFF);
329 b1 <<= 8;
330 b1 |= (buf[pos++] & 0xFF);
331 b1 <<= 8;
332 b1 |= (buf[pos++] & 0xFF);
333 validatePos(pos);
334 return b1;
335 }
336
337
338 /**

Callers

nothing calls this directly

Calls 1

validatePosMethod · 0.95

Tested by

no test coverage detected