diff options
author | David Garcia Quintas <dgq@google.com> | 2015-06-08 16:31:19 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-06-08 20:06:17 -0700 |
commit | 59f905d79a109644a0d1f3ec73f34cbae65448fc (patch) | |
tree | 9ca4e84a195b4a8d8332d24362bc6828c74d4dea /src/cpp/proto | |
parent | 237443faa49dce1ba4df2d74000acef2802b3bdd (diff) |
Changes to byte_buffer based on comments.
Diffstat (limited to 'src/cpp/proto')
-rw-r--r-- | src/cpp/proto/proto_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpp/proto/proto_utils.cc b/src/cpp/proto/proto_utils.cc index 7a7e73bba4..f4cf5cf17a 100644 --- a/src/cpp/proto/proto_utils.cc +++ b/src/cpp/proto/proto_utils.cc @@ -49,8 +49,8 @@ class GrpcBufferWriter GRPC_FINAL explicit GrpcBufferWriter(grpc_byte_buffer** bp, int block_size = kMaxBufferLength) : block_size_(block_size), byte_count_(0), have_backup_(false) { - *bp = grpc_byte_buffer_create(NULL, 0); - slice_buffer_ = &(*bp)->data.slice_buffer; + *bp = grpc_raw_byte_buffer_create(NULL, 0); + slice_buffer_ = &(*bp)->data.raw.slice_buffer; } ~GrpcBufferWriter() GRPC_OVERRIDE { |