Function: writePointer()
writePointer(
destHandle,ptrOffset,elementOffset,sourceHandle,size):void
Defined in: packages/native/dist/index.d.ts:111
Writes a struct value to memory pointed to by a pointer field.
Used for setting array elements. Copies the data from source to the destination array element.
Parameters
| Parameter | Type | Description |
|---|---|---|
destHandle | unknown | Native handle pointing to the parent struct containing the pointer |
ptrOffset | number | Byte offset of the pointer field in the parent |
elementOffset | number | Byte offset from the dereferenced pointer (index * elementSize) |
sourceHandle | unknown | Native handle of the struct to copy from |
size | number | Size in bytes of the struct to copy |
Returns
void