=========================================================================== Reads a long in LSB order from the given gz_stream. Sets z_err in case of error. */
(s)
| 938 | of error. |
| 939 | */ |
| 940 | local 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 |