Skip to content

wasm: add proxy_set_buffer_bytes. (#442)#184

Merged
istio-testing merged 1 commit intoistio:release-1.5from
PiotrSikora:wasm-set_buffer-1.5
Mar 4, 2020
Merged

wasm: add proxy_set_buffer_bytes. (#442)#184
istio-testing merged 1 commit intoistio:release-1.5from
PiotrSikora:wasm-set_buffer-1.5

Conversation

@PiotrSikora
Copy link
Copy Markdown

This function can be used to:

  1. Prepend data to the buffer using proxy_set_buffer(0, 0, data);

  2. Append data to the buffer using proxy_set_buffer(MAX, 0, data);

  3. Replace data in the buffer using proxy_set_buffer(0, MAX, data);

  4. Remove data from the buffer using proxy_set_buffer(0, MAX, "");

While there, allow using MAX in proxy_get_buffer_bytes().

Signed-off-by: Piotr Sikora piotrsikora@google.com

This function can be used to:

1. Prepend data to the buffer using proxy_set_buffer(0, 0, data);

2. Append data to the buffer using proxy_set_buffer(MAX, 0, data);

3. Replace data in the buffer using proxy_set_buffer(0, MAX, data);

4. Remove data from the buffer using proxy_set_buffer(0, MAX, "");

While there, allow using MAX in proxy_get_buffer_bytes().

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@istio-testing istio-testing merged commit c90c744 into istio:release-1.5 Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants