Skip to main content

Function: read()

read(handle, type, offset): unknown

Defined in: packages/ffi/src/native/lifecycle.ts:98

Reads a value from native memory.

Parameters

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

Returns

unknown

The unmarshaled value

Throws

If runtime not started