MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / getLong

Function getLong

zlib/gzio.c:940–952  ·  view source on GitHub ↗

=========================================================================== Reads a long in LSB order from the given gz_stream. Sets z_err in case of error. */

(s)

Source from the content-addressed store, hash-verified

938 of error.
939*/
940local uLong getLong (s)
941 gz_stream *s;
942{
943 uLong x = (uLong)get_byte(s);
944 int c;
945
946 x += ((uLong)get_byte(s))<<8;
947 x += ((uLong)get_byte(s))<<16;
948 c = get_byte(s);
949 if (c == EOF) s->z_err = Z_DATA_ERROR;
950 x += ((uLong)c)<<24;
951 return x;
952}
953
954/* ===========================================================================
955 Flushes all pending output if necessary, closes the compressed file

Callers 1

ZEXPORTFunction · 0.85

Calls 1

get_byteFunction · 0.85

Tested by

no test coverage detected