Home
last modified time | relevance | path

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

/drivers/hdf_core/framework/utils/src/
Dhdf_map.c20 uint32_t valueSize; member
95 const void *value, uint32_t valueSize) in MapCreateNode() argument
98 struct MapNode *node = (struct MapNode *)OsalMemCalloc(sizeof(*node) + keySize + valueSize); in MapCreateNode()
106 node->valueSize = valueSize; in MapCreateNode()
111 if (memcpy_s(node->value, node->valueSize, value, valueSize) != EOK) { in MapCreateNode()
119 …tic int32_t MapSetCheckPara(const Map *map, const char *key, const void *value, uint32_t valueSize) in MapSetCheckPara() argument
121 if (map == NULL || key == NULL || value == NULL || valueSize == 0) { in MapSetCheckPara()
125 if (valueSize > HDF_MAP_KEY_MAX_SIZE || strlen(key) > HDF_MAP_VALUE_MAX_SIZE) { in MapSetCheckPara()
132 int32_t MapSet(Map *map, const char *key, const void *value, uint32_t valueSize) in MapSet() argument
137 if (MapSetCheckPara(map, key, value, valueSize) != HDF_SUCCESS) { in MapSet()
[all …]
/drivers/hdf_core/interfaces/inner_api/utils/
Dhdf_map.h30 int32_t MapSet(Map *map, const char *key, const void *value, uint32_t valueSize);