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
11
StringWriteStream::
StringWriteStream
() =
default
;
12
13
StringWriteStream::~
StringWriteStream
() =
default
;
14
15
bool
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
}
StringWriteStream::WriteBlock
bool WriteBlock(pdfium::span< const uint8_t > buffer) override
Definition
string_write_stream.cpp:15
StringWriteStream::~StringWriteStream
~StringWriteStream() override
StringWriteStream::StringWriteStream
StringWriteStream()
fxcrt
Definition
span_util.h:14
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
string_write_stream.cpp
Generated on Thu Nov 14 2024 01:03:45 for Qt by
1.12.0