aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-10-30 17:01:05 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-10-30 17:24:41 -0700
commit6eb3925a70c70e64e4c4d8577e40841473f19423 (patch)
treeb7bdb62245a59e3c5fa57180090dc9f449b33db5 /include
parent89ea0c78151b5bdc4c9236ae7100a7b97b32e499 (diff)
Added grpc_byte_buffer_reader_readall
Diffstat (limited to 'include')
-rw-r--r--include/grpc/byte_buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/grpc/byte_buffer.h b/include/grpc/byte_buffer.h
index 1433ffdf7e..ffc5982bc0 100644
--- a/include/grpc/byte_buffer.h
+++ b/include/grpc/byte_buffer.h
@@ -106,6 +106,9 @@ void grpc_byte_buffer_reader_destroy(grpc_byte_buffer_reader *reader);
int grpc_byte_buffer_reader_next(grpc_byte_buffer_reader *reader,
gpr_slice *slice);
+/** Merge all data from \a reader into single slice */
+gpr_slice grpc_byte_buffer_reader_readall(grpc_byte_buffer_reader *reader);
+
/** Returns a RAW byte buffer instance from the output of \a reader. */
grpc_byte_buffer *grpc_raw_byte_buffer_from_reader(
grpc_byte_buffer_reader *reader);