MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / gzdirect

Function gzdirect

extern/zlib/src/gzread.c:559–574  ·  view source on GitHub ↗

-- see zlib.h -- */

Source from the content-addressed store, hash-verified

557
558/* -- see zlib.h -- */
559int 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 -- */
577int ZEXPORT gzclose_r(gzFile file) {

Callers

nothing calls this directly

Calls 1

gz_lookFunction · 0.85

Tested by

no test coverage detected