#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) { … }
template class PDFiumAPIStringBufferAdapter<std::string>;
template class PDFiumAPIStringBufferAdapter<std::u16string>;
}
}