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
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

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

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