MCPcopy Create free account
hub / github.com/TASEmulators/fceux / unz64local_getByte

Function unz64local_getByte

src/utils/unzip.cpp:212–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 int *pi));
211
212local int unz64local_getByte(const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, int *pi)
213{
214 unsigned char c;
215 int err = (int)ZREAD64(*pzlib_filefunc_def,filestream,&c,1);
216 if (err==1)
217 {
218 *pi = (int)c;
219 return UNZ_OK;
220 }
221 else
222 {
223 if (ZERROR64(*pzlib_filefunc_def,filestream))
224 return UNZ_ERRNO;
225 else
226 return UNZ_EOF;
227 }
228}
229
230
231/* ===========================================================================

Callers 3

unz64local_getShortFunction · 0.85
unz64local_getLongFunction · 0.85
unz64local_getLong64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected