return inputBufferHandle != 0 && outputBufferHandle != 0 && size > 0;
return eventStructHandle != -1;
    public boolean isValid(){        return inputBufferHandle != 0 && outputBufferHandle != 0            && size > 0;    }