NvBlastActorSerialize

Defined in lowlevel/NvBlast.h

uint32_t NvBlastActorSerialize(void *buffer, uint32_t bufferSize, const NvBlastActor *actor, NvBlastLog logFn)

Serialize a single actor to a buffer.

Parameters
  • buffer[out] User-supplied buffer, must be at least of size given by NvBlastActorGetSerializationSize(actor).

  • bufferSize[in] The size of the user-supplied buffer.

  • actor[in] The actor.

  • logFn[in] User-supplied message function (see NvBlastLog definition). May be NULL.

Returns

the number of bytes written to the buffer, or 0 if there is an error (such as an under-sized buffer).