diff options
author | Craig Tiller <ctiller@google.com> | 2015-08-27 07:38:01 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-08-27 07:38:01 -0700 |
commit | b029859e580bfb7281c623622cdc32daf9846769 (patch) | |
tree | e3e12c253230021f57fb88f09c36e913cfd02f50 /include | |
parent | 4ff47d9ea361251274247998625808305c7f7c4a (diff) |
Revert "Revert "Refactor Endpoint API""
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/support/slice_buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grpc/support/slice_buffer.h b/include/grpc/support/slice_buffer.h index ec048e8c91..04db003ac5 100644 --- a/include/grpc/support/slice_buffer.h +++ b/include/grpc/support/slice_buffer.h @@ -86,6 +86,8 @@ void gpr_slice_buffer_reset_and_unref(gpr_slice_buffer *sb); void gpr_slice_buffer_swap(gpr_slice_buffer *a, gpr_slice_buffer *b); /* move all of the elements of src into dst */ void gpr_slice_buffer_move_into(gpr_slice_buffer *src, gpr_slice_buffer *dst); +/* remove n bytes from the end of a slice buffer */ +void gpr_slice_buffer_trim_end(gpr_slice_buffer *src, size_t n); #ifdef __cplusplus } |