chromium/pdf/pdfium/pdfium_api_string_buffer_adapter.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "pdf/pdfium/pdfium_api_string_buffer_adapter.h"

#include <stddef.h>

#include "base/check_op.h"
#include "base/strings/string_util.h"

namespace chrome_pdf {

namespace internal {

template <class StringType>
PDFiumAPIStringBufferAdapter<StringType>::PDFiumAPIStringBufferAdapter(
    StringType* str,
    size_t expected_size,
    bool check_expected_size)
    :{}

template <class StringType>
PDFiumAPIStringBufferAdapter<StringType>::~PDFiumAPIStringBufferAdapter() {}

template <class StringType>
void* PDFiumAPIStringBufferAdapter<StringType>::GetData() {}

template <class StringType>
void PDFiumAPIStringBufferAdapter<StringType>::Close(size_t actual_size) {}

PDFiumAPIStringBufferSizeInBytesAdapter::
    PDFiumAPIStringBufferSizeInBytesAdapter(std::u16string* str,
                                            size_t expected_size,
                                            bool check_expected_size)
    :{}

PDFiumAPIStringBufferSizeInBytesAdapter::
    ~PDFiumAPIStringBufferSizeInBytesAdapter() = default;

void* PDFiumAPIStringBufferSizeInBytesAdapter::GetData() {}

void PDFiumAPIStringBufferSizeInBytesAdapter::Close(size_t actual_size) {}

// explicit instantiations
template class PDFiumAPIStringBufferAdapter<std::string>;
template class PDFiumAPIStringBufferAdapter<std::u16string>;

}  // namespace internal

}  // namespace chrome_pdf