chromium/third_party/tflite_support/src/tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.cc

/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "tensorflow_lite_support/metadata/cc/utils/zip_writable_mem_file.h"

#include <algorithm>
#include <cstdio>

#include "absl/strings/string_view.h"  // from @com_google_absl
#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 {}

/* static */
voidpf ZipWritableMemFile::OpenFile(voidpf opaque, const void* filename,
                                    int mode) {}

/* static */
uLong ZipWritableMemFile::ReadFile(voidpf opaque, voidpf stream, void* buf,
                                   uLong size) {}

/* static */
uLong ZipWritableMemFile::WriteFile(voidpf opaque, voidpf stream,
                                    const void* buf, uLong size) {}

/* static */
ZPOS64_T ZipWritableMemFile::TellFile(voidpf opaque, voidpf stream) {}

/* static */
long ZipWritableMemFile::SeekFile  // NOLINT
    (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin) {}

/* static */
int ZipWritableMemFile::CloseFile(voidpf opaque, voidpf stream) {}

/* static */
int ZipWritableMemFile::ErrorFile(voidpf opaque, voidpf stream) {}

}  // namespace metadata
}  // namespace tflite