MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / StartIteration

Function StartIteration

Bcore/src/main/cpp/ziparchive/zip_archive.cc:679–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677};
678
679int32_t StartIteration(ZipArchiveHandle handle, void** cookie_ptr, const ZipString* optional_prefix,
680 const ZipString* optional_suffix) {
681 ZipArchive* archive = reinterpret_cast<ZipArchive*>(handle);
682
683 if (archive == NULL || archive->hash_table == NULL) {
684 //chensenhuaALOGW("Zip: Invalid ZipArchiveHandle");
685 return kInvalidHandle;
686 }
687
688 IterationHandle* cookie = new IterationHandle(optional_prefix, optional_suffix);
689 cookie->position = 0;
690 cookie->archive = archive;
691
692 *cookie_ptr = cookie;
693 return 0;
694}
695
696void EndIteration(void* cookie) {
697 delete reinterpret_cast<IterationHandle*>(cookie);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected