MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / readInput

Method readInput

src/main/java/org/htmlunit/util/brotli/Utils.java:76–82  ·  view source on GitHub ↗
(State s, byte[] dst, int offset, int length)

Source from the content-addressed store, hash-verified

74 }
75
76 static int readInput(State s, byte[] dst, int offset, int length) {
77 try {
78 return s.input.read(dst, offset, length);
79 } catch (IOException e) {
80 return makeError(s, BROTLI_ERROR_READ_FAILED);
81 }
82 }
83
84 static InputStream makeEmptyInput() {
85 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