Home
last modified time | relevance | path

Searched refs:bufferLen (Results 1 – 3 of 3) sorted by relevance

/developtools/syscap_codec/interfaces/inner_api/
Dsyscap_interface.c67 static int32_t GetFileContext(const char *inputFile, char **contextBufPtr, uint32_t *bufferLen) in GetFileContext() argument
118 *bufferLen = statBuf.st_size + 1; in GetFileContext()
127 uint32_t bufferLen; in EncodeOsSyscap() local
134 ret = GetFileContext(pcidPath, &contextBuffer, &bufferLen); in EncodeOsSyscap()
156 uint32_t bufferLen; in EncodePrivateSyscap() local
158 ret = GetFileContext(pcidPath, &contextBuffer, &bufferLen); in EncodePrivateSyscap()
164 uint32_t priLen = bufferLen - PCID_MAIN_BYTES - 1; in EncodePrivateSyscap()
244 int bufferLen, ret; in DecodePrivateSyscap() local
266 bufferLen = SINGLE_SYSCAP_LEN * syscapCnt; in DecodePrivateSyscap()
267 outputArray = (char (*)[SINGLE_SYSCAP_LEN])malloc(bufferLen); in DecodePrivateSyscap()
[all …]
/developtools/syscap_codec/src/
Dsyscap_tool.c57 static int32_t GetFileContext(char *inputFile, char **contextBufPtr, uint32_t *bufferLen) in GetFileContext() argument
108 *bufferLen = statBuf.st_size + 1; in GetFileContext()
113 char *convertedBuffer, size_t bufferLen) in ConvertedContextSaveAsFile() argument
153 size_t retFwrite = fwrite(convertedBuffer, bufferLen, 1, fp); in ConvertedContextSaveAsFile()
179 uint32_t bufferLen, sysCapSize; in RPCIDEncode() local
189 ret = GetFileContext(inputFile, &contextBuffer, &bufferLen); in RPCIDEncode()
195 cjsonObjectRoot = cJSON_ParseWithLength(contextBuffer, bufferLen); in RPCIDEncode()
335 uint32_t bufferLen; in CheckRpcidFormat() local
340 if (GetFileContext(inputFile, &contextBuffer, &bufferLen)) { in CheckRpcidFormat()
344 if (bufferLen < (2 * sizeof(uint32_t))) { // 2, header of rpcid.sc in CheckRpcidFormat()
[all …]
Dcreate_pcid.c731 size_t bufferLen, privateSyscapLen, outputLen; in EncodePcidscToString() local
741 ret = GetFileContext(inputFile, &contextBuffer, &bufferLen); in EncodePcidscToString()
747 if (bufferLen > 1128) { // 1128, max size of pcid.sc in EncodePcidscToString()
748 PRINT_ERR("Input pcid file too large, pcid file size: %zu\n", bufferLen); in EncodePcidscToString()