spec
spec copied to clipboard
Programming languages that do not support pointer implement the proxy-wasm ABI
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?
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:
- i32 (proxy_status_t) status
input parameter use uint8_t** return_value_data to get the return value