Searched refs:bufferLen (Results 1 - 5 of 5) sorted by relevance
/developtools/syscap_codec/src/ |
H A D | context_tool.c | 40 int32_t GetFileContext(const char *inputFile, char **contextBufPtr, uint32_t *bufferLen) in GetFileContext() argument 91 *bufferLen = statBuf.st_size + 1; in GetFileContext() 95 int32_t CheckFileAndGetFileContext(const char *inputFile, char **contextBufPtr, uint32_t *bufferLen) in CheckFileAndGetFileContext() argument 101 int32_t ret = GetFileContext(inputFile, contextBufPtr, bufferLen); in CheckFileAndGetFileContext() 160 uint32_t bufferLen; in CheckRpcidFormat() local 165 if (GetFileContext(inputFile, &contextBuffer, &bufferLen)) { in CheckRpcidFormat() 169 if (bufferLen < (2 * sizeof(uint32_t))) { // 2, header of rpcid.sc in CheckRpcidFormat() 187 if (bufferLen < sizeof(RPCIDHead) + sizeof(uint32_t) + sysCapLength) { in CheckRpcidFormat() 194 *len = bufferLen; in CheckRpcidFormat()
|
H A D | syscap_tool.c | 148 uint32_t bufferLen, sysCapSize;
in RPCIDEncode() local 153 if (CheckFileAndGetFileContext(inputFile, &contextBuffer, &bufferLen) != 0) {
in RPCIDEncode() 157 gJsonObjectSysCap.cjsonObjectRoot = cJSON_ParseWithLength(contextBuffer, bufferLen);
in RPCIDEncode() 262 uint32_t bufferLen;
in RPCIDDecode() local 270 if (CheckRpcidFormat(inputFile, &contextBuffer, &bufferLen)) {
in RPCIDDecode() 277 if (ParseRpcidToJson(contextBuffer, bufferLen, rpcidRoot) != 0) {
in RPCIDDecode() 475 uint32_t bufferLen;
in EncodeRpcidscToString() local 493 if (CheckRpcidFormat(inputFile, &freeAfterEncodeRpcidscInfo.contextBuffer, &bufferLen) != 0) {
in EncodeRpcidscToString() 500 if (ParseRpcidToJson(freeAfterEncodeRpcidscInfo.contextBuffer, bufferLen,
in EncodeRpcidscToString()
|
H A D | create_pcid.c | 865 uint32_t bufferLen, privateSyscapLen; in EncodePcidscToString() local 878 ret = CheckFileAndGetFileContext(inputFile, &freePcidInfo.contextBuffer, (uint32_t *)&bufferLen); in EncodePcidscToString() 883 if (bufferLen > 1128) { // 1128, max size of pcid.sc in EncodePcidscToString() 884 PRINT_ERR("Input pcid file too large, pcid file size: %u\n", bufferLen); in EncodePcidscToString()
|
/developtools/syscap_codec/include/ |
H A D | context_tool.h | 42 int32_t GetFileContext(const char *inputFile, char **contextBufPtr, uint32_t *bufferLen); 43 int32_t CheckFileAndGetFileContext(const char *inputFile, char **contextBufPtr, uint32_t *bufferLen);
|
/developtools/syscap_codec/interfaces/inner_api/ |
H A D | syscap_interface.c | 86 uint32_t bufferLen; in EncodeOsSyscap() local 93 ret = GetFileContext(PCID_PATH, &contextBuffer, &bufferLen); in EncodeOsSyscap() 115 uint32_t bufferLen; in EncodePrivateSyscap() local 117 ret = GetFileContext(PCID_PATH, &contextBuffer, &bufferLen); in EncodePrivateSyscap() 123 if (bufferLen < (PCID_MAIN_BYTES + 1) || bufferLen > INT32_MAX) { in EncodePrivateSyscap() 124 PRINT_ERR("Parameter bufferLen out of range."); in EncodePrivateSyscap() 128 uint32_t priLen = bufferLen - PCID_MAIN_BYTES - 1; in EncodePrivateSyscap() 236 int bufferLen = SINGLE_SYSCAP_LEN * syscapCnt; in DecodePrivateSyscap() local 237 outputArray = (char (*)[SINGLE_SYSCAP_LEN])malloc(bufferLen); in DecodePrivateSyscap() 482 uint32_t bufferLen; DecodeRpcidToStringFormat() local [all...] |
Completed in 7 milliseconds