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

Function putLong

zlib/gzio.c:925–934  ·  view source on GitHub ↗

=========================================================================== Outputs a long in LSB order to the given file */

(file, x)

Source from the content-addressed store, hash-verified

923 Outputs a long in LSB order to the given file
924*/
925local void putLong (file, x)
926 FILE *file;
927 uLong x;
928{
929 int n;
930 for (n = 0; n < 4; n++) {
931 fputc((int)(x & 0xff), file);
932 x >>= 8;
933 }
934}
935
936/* ===========================================================================
937 Reads a long in LSB order from the given gz_stream. Sets z_err in case

Callers 1

gzcloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected