Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jing-ze opened this issue Jul 29, 2024 · 1 comment

Comments

@Jing-ze
Copy link

Jing-ze commented Jul 29, 2024

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
Copy link
Author

Jing-ze commented Jul 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant