summaryrefslogtreecommitdiff
path: root/fpdfsdk/fsdk_filewriteadapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fsdk_filewriteadapter.cpp')
-rw-r--r--fpdfsdk/fsdk_filewriteadapter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fpdfsdk/fsdk_filewriteadapter.cpp b/fpdfsdk/fsdk_filewriteadapter.cpp
index 98ca3af574..ff527a6f2e 100644
--- a/fpdfsdk/fsdk_filewriteadapter.cpp
+++ b/fpdfsdk/fsdk_filewriteadapter.cpp
@@ -16,3 +16,7 @@ FSDK_FileWriteAdapter::~FSDK_FileWriteAdapter() {}
bool FSDK_FileWriteAdapter::WriteBlock(const void* data, size_t size) {
return fileWriteStruct_->WriteBlock(fileWriteStruct_, data, size) != 0;
}
+
+bool FSDK_FileWriteAdapter::WriteString(const CFX_ByteStringC& str) {
+ return WriteBlock(str.c_str(), str.GetLength());
+}