Home
last modified time | relevance | path

Searched refs:dataUnit (Results 1 – 2 of 2) sorted by relevance

/base/startup/init/services/param/trigger/
Dtrigger_checker.c25 int CalculatorInit(LogicCalculator *calculator, int dataNumber, int dataUnit, int needCondition) in CalculatorInit() argument
28 PARAM_CHECK(dataUnit <= (int)sizeof(LogicData), return -1, "Invalid param"); in CalculatorInit()
30 int dataSize = dataUnit * dataNumber; in CalculatorInit()
38 calculator->dataUnit = dataUnit; in CalculatorInit()
40 dataSize = dataUnit * dataNumber; in CalculatorInit()
73 … PARAM_CHECK(sizeof(char) == calculator->dataUnit, return -1, "More data for calculator support"); in CalculatorPushChar()
93 char *tmpData = (char *)calculator->data + calculator->dataUnit * calculator->endIndex; in CalculatorPush()
94 int ret = memcpy_s(tmpData, calculator->dataUnit, data, calculator->dataUnit); in CalculatorPush()
107 char *tmpData = (char *)calculator->data + calculator->dataUnit * (calculator->endIndex - 1); in CalculatorPop()
108 int ret = memcpy_s(data, calculator->dataUnit, tmpData, calculator->dataUnit); in CalculatorPop()
/base/startup/init/services/param/include/
Dtrigger_checker.h55 int dataUnit; member
64 int CalculatorInit(LogicCalculator *calculator, int dataNumber, int dataUnit, int needCondition);