Converts JS data to a basic binary format with support for exporting functions so that they can be called across the barrier, too.
◆ tf_task_t
◆ tf_taskstub_t
A handle to a remote task.
◆ tf_serialize_load()
Retrieve JS data from a binary blob.
- Parameters
-
task | The calling task. |
from | The handle to the task from which the data was received. |
buffer | The data. |
size | The size of the data. |
- Returns
- The received JS data.
◆ tf_serialize_store()
void tf_serialize_store |
( |
tf_task_t * |
task, |
|
|
tf_taskstub_t * |
to, |
|
|
void ** |
out_buffer, |
|
|
size_t * |
out_size, |
|
|
JSValue |
value |
|
) |
| |
Store JS data in a binary blob.
- Parameters
-
| task | The calling task. |
| to | The handle to the task to which the data will be sent. |
[out] | out_buffer | Populated with the stored data. |
[out] | out_size | Populated with the size of out_data. |
| value | The JS value to store. |