MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gzdirect

Function gzdirect

freebsd/contrib/zstd/zlibWrapper/gzread.c:631–648  ·  view source on GitHub ↗

-- see zlib.h -- */

(file)

Source from the content-addressed store, hash-verified

629
630/* -- see zlib.h -- */
631int ZEXPORT gzdirect(file)
632 gzFile file;
633{
634 gz_statep state;
635
636 /* get internal structure */
637 if (file == NULL)
638 return 0;
639 state.file = file;
640
641 /* if the state is not known, but we can find out, then do so (this is
642 mainly for right after a gzopen() or gzdopen()) */
643 if (state.state->mode == GZ_READ && state.state->how == LOOK && state.state->x.have == 0)
644 (void)gz_look(state);
645
646 /* return 1 if transparent, 0 if processing a gzip stream */
647 return state.state->direct;
648}
649
650/* -- see zlib.h -- */
651int ZEXPORT gzclose_r(file)

Callers

nothing calls this directly

Calls 1

gz_lookFunction · 0.70

Tested by

no test coverage detected