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().
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