Deserialize

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

CSpStreamFormat::Deserialize

CSpStreamFormat::Deserialize deserializes a stream and passes back a new stream.


HRESULT Deserialize(
   const   BYTE   *pBuffer,
   ULONG          *pcbUsed
);

Parameters

pBuffer
[in out] Buffer containing the serialized stream. After successfully completing the methods, pBuffer will also be set to class member m_pCoMemWaveFormatEx. If unsuccessful, class member m_guidFormatId is set to GUID_NULL.
pcbUsed
The number of bytes used for the stream.

Return values

Value Description
S_OK Function completed successfully.
E_OUTOFMEMORY Exceeded available memory.