forked from tsdgeos/poppler_mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFILECacheLoader.h
34 lines (26 loc) · 871 Bytes
/
FILECacheLoader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//========================================================================
//
// 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