You are here: C++ Support Classes > dtSearch Namespace > Classes > DMemoryInputStream Class > DMemoryInputStream::setBinaryData Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DMemoryInputStream::setBinaryData Method

Set binary data, such as the contents of a Microsoft Word document or a PDF file, as the contents of this document.

Syntax
C++
void setBinaryData(const char * pData, ptrdiff_t bytes);
Parameters
Description
const char * pData
Binary data for this document
ptrdiff_t bytes
Size of the data

The data will be copied into an internal buffer managed by DMemoryInputStream

Copyright (c) 1995-2020 dtSearch Corp. All rights reserved.