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
cpdf_stringarchivestream.cpp
Go to the documentation of this file.
1// Copyright 2018 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 "core/fpdfapi/edit/cpdf_stringarchivestream.h"
6
7#include <sstream>
8
9#include "core/fxcrt/notreached.h"
10
11CPDF_StringArchiveStream::CPDF_StringArchiveStream(fxcrt::ostringstream* stream)
12 : stream_(stream) {}
13
14CPDF_StringArchiveStream::~CPDF_StringArchiveStream() = default;
15
16FX_FILESIZE CPDF_StringArchiveStream::CurrentOffset() const {
18}
19
20bool CPDF_StringArchiveStream::WriteBlock(pdfium::span<const uint8_t> buffer) {
21 auto chars = pdfium::as_chars(buffer);
22 stream_->write(chars.data(), chars.size());
23 return true;
24}
~CPDF_StringArchiveStream() override
CPDF_StringArchiveStream(fxcrt::ostringstream *stream)
FX_FILESIZE CurrentOffset() const override
bool WriteBlock(pdfium::span< const uint8_t > buffer) override
#define FX_FILESIZE
Definition fx_types.h:19
#define NOTREACHED_NORETURN()
Definition notreached.h:22