aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/support
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-01-04 09:52:10 -0800
committerGravatar Vijay Pai <vpai@google.com>2016-01-04 09:52:10 -0800
commit18c0477528169c2032a57b5da094964a6d4beb2f (patch)
treebf5691b2b1b2018f53c4df330353f9539ac5fbeb /include/grpc++/support
parente4886680752e9181e0d848c3046e4a8d1eddffa3 (diff)
Got rid of all compilation problems, now need to test
Diffstat (limited to 'include/grpc++/support')
-rw-r--r--include/grpc++/support/byte_buffer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/grpc++/support/byte_buffer.h b/include/grpc++/support/byte_buffer.h
index 6f29bdfcd5..3adf86c479 100644
--- a/include/grpc++/support/byte_buffer.h
+++ b/include/grpc++/support/byte_buffer.h
@@ -55,6 +55,10 @@ class ByteBuffer GRPC_FINAL {
/// Construct buffer from \a slices, of which there are \a nslices.
ByteBuffer(const Slice* slices, size_t nslices);
+ /// Constuct a byte buffer by referencing elements of existing buffer
+ /// \a buf. Wrapper of core function grpc_byte_buffer_copy
+ ByteBuffer(const ByteBuffer&buf);
+
~ByteBuffer();
/// Dump (read) the buffer contents into \a slices.
@@ -72,7 +76,6 @@ class ByteBuffer GRPC_FINAL {
private:
friend class SerializationTraits<ByteBuffer, void>;
- ByteBuffer(const ByteBuffer&);
ByteBuffer& operator=(const ByteBuffer&);
// takes ownership