Share via


Deserialize (SAPI 5.4)

Microsoft Speech API 5.4

CSpEvent::Deserialize

CSpEvent::Deserialize sets the current instance to the deserialized version of the specified event.

The current instance is cleared first. The original event is not modified.

  
    template <class T>
HRESULT Deserialize(
   const   T   *pSerEvent,
   ULONG       *pcbUsed = NULL
   );

Parameters

  • pSerEvent
    The serialized event.
  • pcbUsed
    Optional parameter passing back the number of bytes of the instance. The default NULL does not pass back any value; TRUE, does.

Return values

Value
S_OK
E_OUTOFMEMORY