| 615 | } |
| 616 | |
| 617 | static uint32_t ZipFile_write_file_func(voidpf opaque, voidpf stream, const void* buf, uint32_t size) |
| 618 | { |
| 619 | if (stream == nullptr) |
| 620 | return (uint32_t)-1; |
| 621 | |
| 622 | return static_cast<IFileStream*>(stream)->write(buf, size); |
| 623 | } |
| 624 | |
| 625 | static int ZipFile_close_file_func(voidpf opaque, voidpf stream) |
| 626 | { |