From 0475549e8ae53e4dbc3193feb3b2c0221f4c7fec Mon Sep 17 00:00:00 2001 From: Makarand Dharmapurikar Date: Tue, 28 Jun 2016 14:15:51 -0700 Subject: [PATCH] Added another comment --- src/objective-c/GRPCClient/private/NSData+GRPC.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/objective-c/GRPCClient/private/NSData+GRPC.m b/src/objective-c/GRPCClient/private/NSData+GRPC.m index 5dfa2695536..741b70b5750 100644 --- a/src/objective-c/GRPCClient/private/NSData+GRPC.m +++ b/src/objective-c/GRPCClient/private/NSData+GRPC.m @@ -44,6 +44,7 @@ static void MallocAndCopyByteBufferToCharArray(grpc_byte_buffer *buffer, grpc_byte_buffer_reader reader; grpc_byte_buffer_reader_init(&reader, buffer); // The slice contains uncompressed data even if compressed data was received + // because the reader takes care of automatically decompressing it gpr_slice slice = grpc_byte_buffer_reader_readall(&reader); size_t uncompressed_length = GPR_SLICE_LENGTH(slice); char *result = malloc(uncompressed_length);