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