• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/widestring.h"
9 
10 StringWriteStream::StringWriteStream() = default;
11 
12 StringWriteStream::~StringWriteStream() = default;
13 
WriteBlock(pdfium::span<const uint8_t> buffer)14 bool StringWriteStream::WriteBlock(pdfium::span<const uint8_t> buffer) {
15   stream_.write(reinterpret_cast<const char*>(buffer.data()), buffer.size());
16   return true;
17 }
18