must be terminated with IDOCMODEL_WriteTermiante() to inform the model that no more data is to be expected and the document is completely loaded.
This function will return the number of bytes that were successfully written. If the return value does not equal 'cbLen', another write operation may be scheduled with IDOCMODEL_Writeable().
- p:Pointer to the IDocModel interface object.
- pbWrite:Pointer to buffer containing document data
- cbLen:Count of data bytes in buffer 'pbWrite'
- pcbWrote:Address of variable to receive number of bytes accepted/written
int IDocModel_Write(IDocModel *po, const byte *pbWrite, int cbLen, int *pcbWrote);
AEE_SUCCESS Successfully wrote bytes or in WOULDBLOCK state, call writeable if (*pcbWrote != cbLen) EBADSTATE LoadSource operation is pending, cannot accept Write