MCPcopy Index your code
hub / github.com/dumbledore/AlbiteREADER / readLeInt

Method readLeInt

src/gnu/zip/ZipFile.java:682–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

680 }
681
682 int readLeInt() throws IOException
683 {
684 int result;
685 if(pos + 3 < buffer.length)
686 {
687 result = (((buffer[pos + 0] & 0xff) | (buffer[pos + 1] & 0xff) << 8)
688 | ((buffer[pos + 2] & 0xff)
689 | (buffer[pos + 3] & 0xff) << 8) << 16);
690 pos += 4;
691 }
692 else
693 {
694 int b0 = read();
695 int b1 = read();
696 int b2 = read();
697 int b3 = read();
698 if (b3 == -1)
699 throw new EOFException();
700 result = (((b0 & 0xff) | (b1 & 0xff) << 8) | ((b2 & 0xff)
701 | (b3 & 0xff) << 8) << 16);
702 }
703 return result;
704 }
705
706 /**
707 * Decode chars from byte buffer using UTF8 encoding. This

Callers 2

readEntriesMethod · 0.95
getInputStreamMethod · 0.95

Calls 1

readMethod · 0.95

Tested by

no test coverage detected