ec_blobject_wrap

March 26, 2020 Contributors

Name

ec_blobject_wrap — Allocates memory for an ec_blobject and initializes it

Synopsis

#include "ec_blobject.h"

| ec_blobject * **ec_blobject_wrap** ( | cls, |   |
|   | object); |   |

ec_blobject_class * <var class="pdparam">cls</var>;
void * <var class="pdparam">object</var>;

Description

Allocates memory for an “ec_blobject”, initializes it using cls and object, then returns the address of the allocated memory.

Parameters

cls

A pointer to an “ec_blobject_class”. This is used to initialize the “ec_blobject” that is returned.

object

A void pointer. This is used to initialize the “ec_blobject” that is returned.

Return Values

This function returns the address of the allocated and initialized “ec_blobject”.

Threading

It is legal to call this function in any thread.

See Also

“ec_blobject”, “ec_blobject_class”, ec_blobject_addref, ec_blobject_delref, and ec_blobject_delref_typeunsafe.