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
invalid_seekable_read_stream.cpp
Go to the documentation of this file.
1// Copyright 2019 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#include "testing/invalid_seekable_read_stream.h"
6
7InvalidSeekableReadStream::InvalidSeekableReadStream(FX_FILESIZE data_size)
8 : data_size_(data_size) {}
9
10InvalidSeekableReadStream::~InvalidSeekableReadStream() = default;
11
12bool InvalidSeekableReadStream::ReadBlockAtOffset(pdfium::span<uint8_t> buffer,
13 FX_FILESIZE offset) {
14 return false;
15}
16
17FX_FILESIZE InvalidSeekableReadStream::GetSize() {
18 return data_size_;
19}
bool ReadBlockAtOffset(pdfium::span< uint8_t > buffer, FX_FILESIZE offset) override
~InvalidSeekableReadStream() override
#define FX_FILESIZE
Definition fx_types.h:19