#include "tensorflow_lite_support/cc/task/core/external_file_handler.h"
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#ifdef ABSL_HAVE_MMAP
#include <sys/mman.h>
#endif
#ifdef _WIN32
#include <windows.h>
#include <direct.h>
#include <io.h>
#else
#include <unistd.h>
#endif
#include <memory>
#include <string>
#include "absl/memory/memory.h"
#include "absl/strings/str_format.h"
#include "tensorflow_lite_support/cc/common.h"
#include "tensorflow_lite_support/cc/port/statusor.h"
#include "tensorflow_lite_support/cc/port/status_macros.h"
namespace tflite {
namespace task {
namespace core {
namespace {
StatusCode;
CreateStatusWithPayload;
StatusOr;
TfLiteSupportStatus;
int64 GetPageSizeAlignedOffset(int64 offset) { … }
}
StatusOr<std::unique_ptr<ExternalFileHandler>>
ExternalFileHandler::CreateFromExternalFile(const ExternalFile* external_file) { … }
absl::Status ExternalFileHandler::MapExternalFile() { … }
absl::string_view ExternalFileHandler::GetFileContent() { … }
ExternalFileHandler::~ExternalFileHandler() { … }
}
}
}