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

Method write

java/org/brotli/wrapper/enc/BrotliOutputStream.java:61–70  ·  view source on GitHub ↗
(int b)

Source from the content-addressed store, hash-verified

59 }
60
61 @Override
62 public void write(int b) throws IOException {
63 if (encoder.closed) {
64 throw new IOException("write after close");
65 }
66 while (!encoder.encode(EncoderJNI.Operation.PROCESS)) {
67 // Busy-wait loop.
68 }
69 encoder.inputBuffer.put((byte) b);
70 }
71
72 @Override
73 public void write(byte[] b) throws IOException {

Callers 15

runMethod · 0.95
runMethod · 0.95
brotlidump.pyFile · 0.45
mainFunction · 0.45
_check_decompressionMethod · 0.45
_test_single_processMethod · 0.45
_decompressMethod · 0.45
_check_decompressionMethod · 0.45
_compressMethod · 0.45
_decompressMethod · 0.45

Calls 2

encodeMethod · 0.80
minMethod · 0.80

Tested by 14

runMethod · 0.76
runMethod · 0.76
_check_decompressionMethod · 0.36
_test_single_processMethod · 0.36
_decompressMethod · 0.36
_check_decompressionMethod · 0.36
_compressMethod · 0.36
_decompressMethod · 0.36
test_changing_limitMethod · 0.36