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
string_write_stream.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 "testing/string_write_stream.h"
6
7#include "core/fxcrt/bytestring.h"
8#include "core/fxcrt/span_util.h"
9#include "core/fxcrt/widestring.h"
10
11StringWriteStream::StringWriteStream() = default;
12
13StringWriteStream::~StringWriteStream() = default;
14
15bool StringWriteStream::WriteBlock(pdfium::span<const uint8_t> buffer) {
16 auto chars = fxcrt::reinterpret_span<const char>(buffer);
17 stream_.write(chars.data(), chars.size());
18 return true;
19}
bool WriteBlock(pdfium::span< const uint8_t > buffer) override
~StringWriteStream() override