diff options
author | Makarand Dharmapurikar <makarandd@google.com> | 2016-06-28 13:41:51 -0700 |
---|---|---|
committer | Makarand Dharmapurikar <makarandd@google.com> | 2016-06-28 13:41:51 -0700 |
commit | 5aada71fbfe7f1fe73078c115882a8cf5f856c6e (patch) | |
tree | 9d203a7fe7d5ac9dbac0c2e02dfe3b1d3942f6d8 /src/objective-c | |
parent | d99a925d52b9b56306c245b3e4d43e7a737dfe35 (diff) |
Added a comment
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/GRPCClient/private/NSData+GRPC.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/NSData+GRPC.m b/src/objective-c/GRPCClient/private/NSData+GRPC.m index 6b635a6649..5dfa269553 100644 --- a/src/objective-c/GRPCClient/private/NSData+GRPC.m +++ b/src/objective-c/GRPCClient/private/NSData+GRPC.m @@ -43,6 +43,7 @@ static void MallocAndCopyByteBufferToCharArray(grpc_byte_buffer *buffer, size_t *length, char **array) { grpc_byte_buffer_reader reader; grpc_byte_buffer_reader_init(&reader, buffer); + // The slice contains uncompressed data even if compressed data was received gpr_slice slice = grpc_byte_buffer_reader_readall(&reader); size_t uncompressed_length = GPR_SLICE_LENGTH(slice); char *result = malloc(uncompressed_length); |