Lines Matching defs:count

51 static void DestroyStringArray(char**& bufArray, unsigned int& count)

56 for (unsigned int i = 0; i < count; i++) {
64 count = 0;
67 static void DestroyUnifiedRecordArray(OH_UdmfRecord**& records, unsigned int& count)
72 for (unsigned int i = 0; i < count; i++) {
80 count = 0;
195 char** OH_UdmfData_GetTypes(OH_UdmfData* unifiedData, unsigned int* count)
197 if (!IsUnifiedDataValid(unifiedData) || count == nullptr) {
203 *count = unifiedData->typesCount;
210 *count = unifiedData->typesCount;
214 char** OH_UdmfRecord_GetTypes(OH_UdmfRecord* record, unsigned int* count)
216 if (!IsUnifiedRecordValid(record) || count == nullptr) {
222 *count = record->typesCount;
230 *count = record->typesCount;
234 OH_UdmfRecord** OH_UdmfData_GetRecords(OH_UdmfData* unifiedData, unsigned int* count)
236 if (!IsUnifiedDataValid(unifiedData) || count == nullptr) {
242 *count = unifiedData->recordsCount;
247 *count = unifiedData->recordsCount;
430 const unsigned char* entry, unsigned int count)
432 if (!IsUnifiedRecordValid(record) || typeId == nullptr || entry == nullptr || count == 0 ||
433 count > MAX_GENERAL_ENTRY_SIZE || strlen(typeId) > MAX_KEY_STRING_LEN) {
436 std::vector<uint8_t> recordValue(entry, entry + count);
447 record->recordDataLen = count;
484 int OH_UdmfRecord_GetGeneralEntry(OH_UdmfRecord* record, const char* typeId, unsigned char** entry, unsigned int* count)
486 if (!IsUnifiedRecordValid(record) || typeId == nullptr || entry == nullptr || count == nullptr) {
497 *count = record->recordDataLen;
511 *count = record->recordDataLen;
871 int OH_UdmfRecord_SetProvider(OH_UdmfRecord* record, const char* const* types, unsigned int count,
874 if (!IsUnifiedRecordValid(record) || types == nullptr || count == 0 || provider == nullptr) {
881 for (unsigned int i = 0; i < count; ++i) {
886 if (udTypeSet.count(types[i]) == 0) {