MCPcopy Index your code
hub / github.com/google/brotli / consume

Method consume

java/org/brotli/wrapper/dec/Decoder.java:123–130  ·  view source on GitHub ↗
(ByteBuffer dst)

Source from the content-addressed store, hash-verified

121 }
122
123 int consume(ByteBuffer dst) {
124 ByteBuffer slice = buffer.slice();
125 int limit = Math.min(slice.remaining(), dst.remaining());
126 ((Buffer) slice).limit(limit);
127 dst.put(slice);
128 discard(limit);
129 return limit;
130 }
131
132 @Override
133 public void close() throws IOException {

Callers 1

readMethod · 0.80

Calls 2

discardMethod · 0.95
minMethod · 0.80

Tested by

no test coverage detected