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

Method getFourBytes

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

Source from the content-addressed store, hash-verified

93
94
95 static long getFourBytes(byte[] input, int firstByte) {
96 return ((long) (input[firstByte] & 0xFF) << 24) + ((input[firstByte + 1] & 0xFF) << 16) +
97 ((input[firstByte + 2] & 0xFF) << 8) + (input[firstByte + 3] & 0xFF);
98 }
99
100
101 static void setFourBytes(byte[] output, int firstByte, long value) {

Callers 5

testGetFourBytesMethod · 0.95
initMethod · 0.95
readRstFrameMethod · 0.95
readSettingsFrameMethod · 0.95
readGoawayFrameMethod · 0.95

Calls

no outgoing calls

Tested by 1

testGetFourBytesMethod · 0.76