aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/byte_buffer.h
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-06-17 18:31:58 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-06-17 18:33:24 -0700
commit3df5c44c84c07c793da1dc9b68bc35ece4268d5e (patch)
tree7fc2112d8a4b8aff52c03640c1357e468868abb6 /include/grpc/byte_buffer.h
parent81889aa8333da25bda9ae2551803adbf01c39f1e (diff)
Introduced function to create byte buffers from the output of a byte buffer reader.
Diffstat (limited to 'include/grpc/byte_buffer.h')
-rw-r--r--include/grpc/byte_buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc/byte_buffer.h b/include/grpc/byte_buffer.h
index 6d08474d8c..1b51569f24 100644
--- a/include/grpc/byte_buffer.h
+++ b/include/grpc/byte_buffer.h
@@ -103,6 +103,10 @@ 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);
+/** 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);
+
#ifdef __cplusplus
}
#endif