Skip to content

Commit

Permalink
Make flush and encode public
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperxpro committed May 30, 2023
1 parent 8f6c0cc commit e548933
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ boolean pushOutput(boolean force) throws IOException {
/**
* @return true if there is space in inputBuffer.
*/
@Local
@Upstream
boolean encode(EncoderJNI.Operation op) throws IOException {
public boolean encode(EncoderJNI.Operation op) throws IOException {
boolean force = (op != EncoderJNI.Operation.PROCESS);
if (force) {
((Buffer) inputBuffer).limit(inputBuffer.position());
Expand All @@ -198,8 +199,9 @@ boolean encode(EncoderJNI.Operation op) throws IOException {
}
}

@Local
@Upstream
void flush() throws IOException {
public void flush() throws IOException {
encode(EncoderJNI.Operation.FLUSH);
}

Expand Down

0 comments on commit e548933

Please # to comment.