Lines Matching refs:contextBuffer

70     char *contextBuffer;

83 static int32_t FillOsCapLength(char *convertedBuffer, char *contextBuffer, struct JsonObjectSysCap gJsonObjectSysCap,
135 cJSON *cjsonObjectRoot, char *convertedBuffer, char *contextBuffer, int32_t type, int32_t ret)
141 FreeContextBuffer(contextBuffer);
147 char *contextBuffer = NULL;
153 if (CheckFileAndGetFileContext(inputFile, &contextBuffer, &bufferLen) != 0) {
157 gJsonObjectSysCap.cjsonObjectRoot = cJSON_ParseWithLength(contextBuffer, bufferLen);
159 PRINT_ERR("cJSON_Parse failed, context buffer is:\n%s\n", contextBuffer);
160 return FreeAfterRPCIDEncode(gJsonObjectSysCap.cjsonObjectRoot, NULL, contextBuffer,
167 return FreeAfterRPCIDEncode(gJsonObjectSysCap.cjsonObjectRoot, NULL, contextBuffer,
174 return FreeAfterRPCIDEncode(gJsonObjectSysCap.cjsonObjectRoot, NULL, contextBuffer,
185 return FreeAfterRPCIDEncode(gJsonObjectSysCap.cjsonObjectRoot, convertedBuffer, contextBuffer,
190 if (FillOsCapLength(convertedBuffer, contextBuffer, gJsonObjectSysCap, sysCapSize, ret) == -1) {
191 return FreeAfterRPCIDEncode(gJsonObjectSysCap.cjsonObjectRoot, convertedBuffer, contextBuffer,
198 return FreeAfterRPCIDEncode(gJsonObjectSysCap.cjsonObjectRoot, convertedBuffer, contextBuffer,
260 char *contextBuffer = NULL;
270 if (CheckRpcidFormat(inputFile, &contextBuffer, &bufferLen)) {
277 if (ParseRpcidToJson(contextBuffer, bufferLen, rpcidRoot) != 0) {
299 FreeContextBuffer(contextBuffer);
418 outUint[0] = *(uint32_t *)freeAfterEncodeRpcidscInfo.contextBuffer;
419 outUint[1] = *(uint32_t *)(freeAfterEncodeRpcidscInfo.contextBuffer + sizeof(uint32_t));
440 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer);
447 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer);
453 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer);
458 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer);
462 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer);
466 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer);
483 freeAfterEncodeRpcidscInfo.contextBuffer = NULL;
493 if (CheckRpcidFormat(inputFile, &freeAfterEncodeRpcidscInfo.contextBuffer, &bufferLen) != 0) {
500 if (ParseRpcidToJson(freeAfterEncodeRpcidscInfo.contextBuffer, bufferLen,