-- see zlib.h -- */
| 557 | |
| 558 | /* -- see zlib.h -- */ |
| 559 | int ZEXPORT gzdirect(gzFile file) { |
| 560 | gz_statep state; |
| 561 | |
| 562 | /* get internal structure */ |
| 563 | if (file == NULL) |
| 564 | return 0; |
| 565 | state = (gz_statep)file; |
| 566 | |
| 567 | /* if the state is not known, but we can find out, then do so (this is |
| 568 | mainly for right after a gzopen() or gzdopen()) */ |
| 569 | if (state->mode == GZ_READ && state->how == LOOK && state->x.have == 0) |
| 570 | (void)gz_look(state); |
| 571 | |
| 572 | /* return 1 if transparent, 0 if processing a gzip stream */ |
| 573 | return state->direct; |
| 574 | } |
| 575 | |
| 576 | /* -- see zlib.h -- */ |
| 577 | int ZEXPORT gzclose_r(gzFile file) { |