spec icon indicating copy to clipboard operation
spec copied to clipboard

Programming languages that do not support pointer implement the proxy-wasm ABI

Open Jing-ze opened this issue 1 year ago • 1 comments

In the ABI Spec, most functions use pointers as input parameters to get return values. How can the ABI implement in languages that do not support obtaining variable address using pointer, such as TypeScript, Python?

Jing-ze avatar Jul 29 '24 07:07 Jing-ze

For example: proxy_get_header_map_value

  • params:
    • i32 (proxy_map_type_t) map_id
    • i32 (const char *) key_data
    • i32 (size_t) key_size
    • i32 (uint8_t **) return_value_data
    • i32 (size_t *) return_value_size
  • returns:

input parameter use uint8_t** return_value_data to get the return value

Jing-ze avatar Jul 29 '24 07:07 Jing-ze