MCPcopy Create free account
hub / github.com/apache/tomcat / toInt

Method toInt

java/org/apache/catalina/tribes/io/XByteBuffer.java:521–524  ·  view source on GitHub ↗

Convert four bytes to an int @param b - the byte array containing the four bytes @param off - the offset @return the integer value constructed from the four bytes

(byte[] b, int off)

Source from the content-addressed store, hash-verified

519 * @return the integer value constructed from the four bytes
520 */
521 public static int toInt(byte[] b, int off) {
522 return ((b[off + 3]) & 0xFF) + (((b[off + 2]) & 0xFF) << 8) + (((b[off + 1]) & 0xFF) << 16) +
523 (((b[off]) & 0xFF) << 24);
524 }
525
526 /**
527 * Convert eight bytes to a long

Callers 12

getNumberMethod · 0.95
getNumberMethod · 0.95
getMemberMethod · 0.95
countPackagesMethod · 0.95
extractDataPackageMethod · 0.95
getDataFromPackageMethod · 0.95
hashCodeMethod · 0.95
FragCollectionMethod · 0.95
addMessageMethod · 0.95
hashCodeMethod · 0.95
parseMethod · 0.95
messageReceivedMethod · 0.95

Calls

no outgoing calls

Tested by 2

getNumberMethod · 0.76
getNumberMethod · 0.76