Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

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.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>template &lt;class T&gt; HRESULT Deserialize(</strong> <strong>const T</strong> *<em>pSerEvent</em>, <strong>ULONG</strong> *<em>pcbUsed</em> = NULL <strong>);</strong></pre>

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 Description
S_OK Function completed successfully.
E_OUTOFMEMORY Exceeded available memory.