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

Method discard

java/org/brotli/wrapper/dec/Decoder.java:116–121  ·  view source on GitHub ↗
(int length)

Source from the content-addressed store, hash-verified

114 }
115
116 void discard(int length) {
117 ((Buffer) buffer).position(buffer.position() + length);
118 if (!buffer.hasRemaining()) {
119 buffer = null;
120 }
121 }
122
123 int consume(ByteBuffer dst) {
124 ByteBuffer slice = buffer.slice();

Callers 2

consumeMethod · 0.95
skipMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected