MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / readBuf

Method readBuf

src/gnu/zip/ZipInputStream.java:81–94  ·  view source on GitHub ↗
(byte[] out, int offset, int length)

Source from the content-addressed store, hash-verified

79 }
80
81 private int readBuf(byte[] out, int offset, int length) throws IOException
82 {
83 if (avail <= 0)
84 {
85 fillBuf();
86 if (avail <= 0)
87 return -1;
88 }
89 if (length > avail)
90 length = avail;
91 System.arraycopy(buf, len - avail, out, offset, length);
92 avail -= length;
93 return length;
94 }
95
96 private void readFully(byte[] out) throws IOException
97 {

Callers 2

readFullyMethod · 0.95
readMethod · 0.95

Calls 1

fillBufMethod · 0.95

Tested by

no test coverage detected