@@ -37,7 +37,7 @@ FOUNDATION_EXPORT NSString *const GDTCCTNetworkConnectionInfo;
37
37
38
38
/* * Converts an NSString* to a pb_bytes_array_t*.
39
39
*
40
- * @note malloc is called in this method. Ensure that pb_release is called on this or the parent.
40
+ * @note calloc is called in this method. Ensure that pb_release is called on this or the parent.
41
41
*
42
42
* @param string The string to convert.
43
43
* @return A newly allocated array of bytes representing the UTF8 encoding of the string.
@@ -46,7 +46,7 @@ pb_bytes_array_t *GDTCCTEncodeString(NSString *string);
46
46
47
47
/* * Converts an NSData to a pb_bytes_array_t*.
48
48
*
49
- * @note malloc is called in this method. Ensure that pb_release is called on this or the parent.
49
+ * @note calloc is called in this method. Ensure that pb_release is called on this or the parent.
50
50
*
51
51
* @param data The data to convert.
52
52
* @return A newly allocated array of bytes with [data bytes] copied into it.
@@ -67,7 +67,7 @@ NSData *GDTCCTEncodeBatchedLogRequest(gdt_cct_BatchedLogRequest *batchedLogReque
67
67
68
68
/* * Constructs a gdt_cct_BatchedLogRequest given sets of events segemented by mapping ID.
69
69
*
70
- * @note malloc is called in this method. Ensure that pb_release is called on this or the parent.
70
+ * @note calloc is called in this method. Ensure that pb_release is called on this or the parent.
71
71
*
72
72
* @param logMappingIDToLogSet A map of mapping IDs to sets of events to convert into a batch.
73
73
* @return A newly created gdt_cct_BatchedLogRequest.
@@ -78,7 +78,7 @@ gdt_cct_BatchedLogRequest GDTCCTConstructBatchedLogRequest(
78
78
79
79
/* * Constructs a log request given a log source and a set of events.
80
80
*
81
- * @note malloc is called in this method. Ensure that pb_release is called on this or the parent.
81
+ * @note calloc is called in this method. Ensure that pb_release is called on this or the parent.
82
82
* @param logSource The CCT log source to put into the log request.
83
83
* @param logSet The set of events to send in this log request.
84
84
*/
@@ -126,7 +126,7 @@ gdt_cct_NetworkConnectionInfo_MobileSubtype GDTCCTNetworkConnectionInfoNetworkMo
126
126
127
127
/* * Decodes a gdt_cct_LogResponse given proto bytes.
128
128
*
129
- * @note malloc is called in this method. Ensure that pb_release is called on the return value.
129
+ * @note calloc is called in this method. Ensure that pb_release is called on the return value.
130
130
*
131
131
* @param data The proto bytes of the gdt_cct_LogResponse.
132
132
* @param error An error that will be populated if something went wrong during decoding.
0 commit comments