thejagstudio's picture
Upload 477 files
a9694d2 verified
raw
history blame contribute delete
871 Bytes
//========================================================================
//
// FILECacheLoader.h
//
// This file is licensed under the GPLv2 or later
//
// Copyright 2010 Hib Eris <[email protected]>
// Copyright 2010, 2022 Albert Astals Cid <[email protected]>
// Copyright 2021 Christian Persch <[email protected]>
//
//========================================================================
#ifndef FILECACHELOADER_H
#define FILECACHELOADER_H
#include "CachedFile.h"
#include <cstdio>
class POPPLER_PRIVATE_EXPORT FILECacheLoader : public CachedFileLoader
{
FILE *file = stdin;
public:
FILECacheLoader() = default;
~FILECacheLoader() override;
explicit FILECacheLoader(FILE *fileA) : file(fileA) { }
size_t init(CachedFile *cachedFile) override;
int load(const std::vector<ByteRange> &ranges, CachedFileWriter *writer) override;
};
#endif