Helper SpEventSerializeSize

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

SpEventSerializeSize

SpEventSerializeSize calculates the required size of a buffer to serialize an event. The call must specify which type of serialized event.

Found in: sphelper.h

template <class T>
inline ULONG SpEventSerializeSize(
   const SPEVENT   *pEvent
);

Parameters

pEvent
[in] The event structure to calculate the size of. pEvent must be either SPSERIALIZEDEVENT or SPSERIALIZEDEVENT64.

Return values

Size, in bytes, required to serialize the event.