| 677 | }; |
| 678 | |
| 679 | int32_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 | |
| 696 | void EndIteration(void* cookie) { |
| 697 | delete reinterpret_cast<IterationHandle*>(cookie); |
nothing calls this directly
no outgoing calls
no test coverage detected