MCPcopy Create free account
hub / github.com/L-JINBIN/ApkDataMultiplexing / readUInt

Method readUInt

src/bin/mt/apksign/ByteArrayUtil.java:30–36  ·  view source on GitHub ↗
(byte[] data, int offset)

Source from the content-addressed store, hash-verified

28 }
29
30 static long readUInt(byte[] data, int offset) {
31 long ch1 = data[offset] & 0xffL;
32 long ch2 = data[offset + 1] & 0xffL;
33 long ch3 = data[offset + 2] & 0xffL;
34 long ch4 = data[offset + 3] & 0xffL;
35 return (ch1) | (ch2 << 8) | (ch3 << 16) | (ch4 << 24);
36 }
37
38 static byte[] intToBytes(int value) {
39 byte[] array = new byte[4];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected