Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_read_only_vector_stream.h
Go to the documentation of this file.
1
// Copyright 2022 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#
ifndef
CORE_FXCRT_CFX_READ_ONLY_VECTOR_STREAM_H_
6
#
define
CORE_FXCRT_CFX_READ_ONLY_VECTOR_STREAM_H_
7
8
#
include
<
stdint
.
h
>
9
10
#
include
"core/fxcrt/data_vector.h"
11
#
include
"core/fxcrt/fixed_size_data_vector.h"
12
#
include
"core/fxcrt/fx_stream.h"
13
#
include
"core/fxcrt/retain_ptr.h"
14
15
class
CFX_ReadOnlySpanStream;
16
17
class
CFX_ReadOnlyVectorStream
final
:
public
IFX_SeekableReadStream
{
18
public
:
19
CONSTRUCT_VIA_MAKE_RETAIN
;
20
21
// IFX_SeekableReadStream:
22
FX_FILESIZE
GetSize
()
override
;
23
bool
ReadBlockAtOffset
(pdfium::span<uint8_t> buffer,
24
FX_FILESIZE
offset)
override
;
25
26
private
:
27
explicit
CFX_ReadOnlyVectorStream(DataVector<uint8_t> data);
28
explicit
CFX_ReadOnlyVectorStream(
FixedSizeDataVector
<uint8_t> data);
29
~
CFX_ReadOnlyVectorStream
()
override
;
30
31
const
DataVector<uint8_t> data_;
32
const
FixedSizeDataVector
<uint8_t> fixed_data_;
33
// Spans over either `data_` or `fixed_data_`.
34
const
RetainPtr
<CFX_ReadOnlySpanStream> stream_;
35
};
36
37
#
endif
// CORE_FXCRT_CFX_READ_ONLY_VECTOR_STREAM_H_
CFX_ReadOnlyVectorStream::GetSize
FX_FILESIZE GetSize() override
Definition
cfx_read_only_vector_stream.cpp:23
CFX_ReadOnlyVectorStream::~CFX_ReadOnlyVectorStream
~CFX_ReadOnlyVectorStream() override
CFX_ReadOnlyVectorStream::ReadBlockAtOffset
bool ReadBlockAtOffset(pdfium::span< uint8_t > buffer, FX_FILESIZE offset) override
Definition
cfx_read_only_vector_stream.cpp:27
CPDF_DataAvail::DownloadHints
Definition
cpdf_data_avail.h:67
CPDF_DataAvail::FileAvail
Definition
cpdf_data_avail.h:61
CPDF_ReadValidator::ScopedSession
Definition
cpdf_read_validator.h:16
CPDF_ReadValidator
Definition
cpdf_read_validator.h:14
IFX_SeekableReadStream
Definition
fx_stream.h:57
fxcrt::FixedSizeDataVector
Definition
fixed_size_data_vector.h:24
fxcrt::RetainPtr
Definition
retain_ptr.h:29
TEST
TEST(FXCRYPT, MD5GenerateEmtpyData)
Definition
fx_crypt_unittest.cpp:45
FX_FILESIZE
#define FX_FILESIZE
Definition
fx_types.h:19
std
Definition
qfloat16.h:493
CONSTRUCT_VIA_MAKE_RETAIN
#define CONSTRUCT_VIA_MAKE_RETAIN
Definition
retain_ptr.h:224
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
cfx_read_only_vector_stream.h
Generated on Thu Nov 14 2024 00:56:33 for Qt by
1.12.0