Skip to main content

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

ParameterTypeDescription
destHandleunknownNative handle pointing to the parent struct containing the pointer
ptrOffsetnumberByte offset of the pointer field in the parent
elementOffsetnumberByte offset from the dereferenced pointer (index * elementSize)
sourceHandleunknownNative handle of the struct to copy from
sizenumberSize in bytes of the struct to copy

Returns

void