#include "mediapipe/tasks/cc/metadata/utils/zip_readonly_mem_file.h"
#include <algorithm>
#include <cstdio>
#include "absl/strings/string_view.h"
#include "contrib/minizip/ioapi.h"
namespace mediapipe {
namespace tasks {
namespace metadata {
ZipReadOnlyMemFile::ZipReadOnlyMemFile(const char* buffer, size_t size)
: … { … }
zlib_filefunc64_def& ZipReadOnlyMemFile::GetFileFunc64Def() { … }
voidpf ZipReadOnlyMemFile::OpenFile(voidpf opaque, const void* filename,
int mode) { … }
uLong ZipReadOnlyMemFile::ReadFile(voidpf opaque, voidpf stream, void* buf,
uLong size) { … }
uLong ZipReadOnlyMemFile::WriteFile(voidpf opaque, voidpf stream,
const void* buf, uLong size) { … }
ZPOS64_T ZipReadOnlyMemFile::TellFile(voidpf opaque, voidpf stream) { … }
long ZipReadOnlyMemFile::SeekFile
(voidpf opaque, voidpf stream, ZPOS64_T offset, int origin) { … }
int ZipReadOnlyMemFile::CloseFile(voidpf opaque, voidpf stream) { … }
int ZipReadOnlyMemFile::ErrorFile(voidpf opaque, voidpf stream) { … }
}
}
}