Skip to content

Deflater.needsInput() Always returns true #191

@lechiefe

Description

@lechiefe

I am trying to replace the default JVM Deflater class with the IntelDeflater.

The logic is straight-forward and works perfectly on the default Deflater, however simply swapping it for the Intel version results in the needsInput() method always returning true, no matter how many times the set input method has been called.

def.setInput(buffer, off + idx, writeSize);
     while(!def.needsInput()) {
         //Unreachable code
     }

Perhaps there is a difference in the api that I am missing? Any insight is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions