aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/byte_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grpc++/byte_buffer.h')
-rw-r--r--include/grpc++/byte_buffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/grpc++/byte_buffer.h b/include/grpc++/byte_buffer.h
index 3e40eaed1d..2c0f2e6944 100644
--- a/include/grpc++/byte_buffer.h
+++ b/include/grpc++/byte_buffer.h
@@ -48,7 +48,7 @@ class ByteBuffer GRPC_FINAL {
public:
ByteBuffer() : buffer_(nullptr) {}
- ByteBuffer(Slice* slices, size_t nslices);
+ ByteBuffer(const Slice* slices, size_t nslices);
~ByteBuffer() {
if (buffer_) {
@@ -56,10 +56,10 @@ class ByteBuffer GRPC_FINAL {
}
}
- void Dump(std::vector<Slice>* slices);
+ void Dump(std::vector<Slice>* slices) const;
void Clear();
- size_t Length();
+ size_t Length() const;
private:
friend class CallOpBuffer;