22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong> A.101<br />

dlpdfmemfilesetbuffer (MDFile File, unsigned<br />

char * Data, ASSize_t Size)<br />

Return Value: ASBool<br />

Description<br />

Parameters<br />

Return Value<br />

This method configures Files In Memory to<br />

directly use the buffer passed in as the file contents.<br />

Unlike dlpdfmemfilesetdata, this<br />

method does not copy the buffer; the file<br />

instance <strong>and</strong> buffer instance are one <strong>and</strong> the<br />

same.<br />

• MDFile File: File to be overwritten<br />

• unsigned char * Data: Memory to<br />

replace the File’s previous content.<br />

• ASSize_t Size<br />

ASBool: TRUE is returned if the file’s data<br />

buffer could be set to this memory, FALSE if it<br />

could not.<br />

Exceptions<br />

Header<br />

Related Methods<br />

Availability<br />

dli.h<br />

dlpdfmemfileacquire,<br />

dlpdfmemfilerelease,<br />

dlpdfmemfilesetdata<br />

All <strong>DLI</strong>-supported platforms.<br />

Technical Notes<br />

1 As of <strong>DLI</strong> v3.0.11, the dlpdfmemfilesetbuffer <strong>and</strong><br />

dlpdfmemfilesetdata calls no longer rewind the memory files to position 0.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!