MCPcopy
hub / github.com/google/brotli / readInput

Method readInput

java/org/brotli/dec/Utils.java:75–81  ·  view source on GitHub ↗
(State s, byte[] dst, int offset, int length)

Source from the content-addressed store, hash-verified

73 }
74
75 static int readInput(State s, byte[] dst, int offset, int length) {
76 try {
77 return s.input.read(dst, offset, length);
78 } catch (IOException e) {
79 return makeError(s, BROTLI_ERROR_READ_FAILED);
80 }
81 }
82
83 static InputStream makeEmptyInput() {
84 return new ByteArrayInputStream(new byte[0]);

Callers 2

readMoreInputMethod · 0.95
copyRawBytesMethod · 0.95

Calls 2

makeErrorMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected