diff options
author | Vijay Pai <vpai@google.com> | 2016-01-04 09:52:10 -0800 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2016-01-04 09:52:10 -0800 |
commit | 18c0477528169c2032a57b5da094964a6d4beb2f (patch) | |
tree | bf5691b2b1b2018f53c4df330353f9539ac5fbeb /include/grpc++/support | |
parent | e4886680752e9181e0d848c3046e4a8d1eddffa3 (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.h | 5 |
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 |