Skip to content

@gtkx/ffi / read

Function: read()

read(handle, type, offset): FfiValue

Defined in: packages/ffi/src/native.ts:142

Reads a value from native memory.

Parameters

ParameterTypeDescription
handleNativeHandleHandle to the memory region
typeTypeType descriptor for unmarshaling
offsetnumberByte offset within the memory region

Returns

FfiValue

The unmarshaled value

Throws

If runtime not started