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

Method get31Bits

java/org/apache/coyote/http2/ByteUtil.java:36–39  ·  view source on GitHub ↗
(byte[] input, int firstByte)

Source from the content-addressed store, hash-verified

34
35
36 static int get31Bits(byte[] input, int firstByte) {
37 return ((input[firstByte] & 0x7F) << 24) + ((input[firstByte + 1] & 0xFF) << 16) +
38 ((input[firstByte + 2] & 0xFF) << 8) + (input[firstByte + 3] & 0xFF);
39 }
40
41
42 static int get31Bits(ByteBuffer input, int firstByte) {

Callers 8

testGet31BitsMethod · 0.95
receivePingMethod · 0.95
readFrameMethod · 0.95
readGoawayFrameMethod · 0.95
readWindowUpdateFrameMethod · 0.95
validateMethod · 0.95
completedMethod · 0.95

Calls 1

getMethod · 0.65

Tested by 1

testGet31BitsMethod · 0.76