MCPcopy Index your code
hub / github.com/0opslab/opslabJutil / Coder

Class Coder

src/main/java/com/opslab/util/encrypt/Base64Ext.java:64–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 // --------------------------------------------------------
63
64 /* package */ static abstract class Coder {
65 public byte[] output;
66 public int op;
67
68 /**
69 * Encode/decode another block of input data. this.output is
70 * provided by the caller, and must be big enough to hold all
71 * the coded data. On exit, this.opwill be set to the length
72 * of the coded data.
73 *
74 * @param finish true if this is the final call to process for
75 * this object. Will finalize the coder state and
76 * include any final bytes in the output.
77 * @return true if the input so far is good; false if some
78 * error has been detected in the input stream..
79 */
80 public abstract boolean process(byte[] input, int offset, int len, boolean finish);
81
82 /**
83 * @return the maximum number of bytes a call to process()
84 * could produce for the given number of input bytes. This may
85 * be an overestimate.
86 */
87 public abstract int maxOutputSize(int len);
88 }
89
90 // --------------------------------------------------------
91 // decoding

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected