Lines Matching refs:numContacts
145 uint32_t numContacts = 0;
152 numContacts = file.ReadUInt32();
154 if (numContacts == 0) {
167 numContacts = file.ReadUInt32();
173 numContacts = 0;
176 if (numContacts != 0 && numContacts * 25 <= (file.GetLength() - file.GetPosition())) {
177 for (uint32_t i = 0; i < numContacts; i++) {
242 uint32_t numContacts = file.ReadUInt32();
243 if (numContacts != 0 && numContacts * 25 == (file.GetLength() - file.GetPosition())) {
245 while (numContacts) {
283 numContacts--;
304 ContactList::size_type numContacts = contacts.size();
305 numContacts = std::min<ContactList::size_type>(numContacts, CONTACT_FILE_LIMIT); // safety precaution, should not be above
306 if (numContacts < 25) {
307 AddLogLineN(CFormat(wxPLURAL("Only %d Kad contact available, nodes.dat not written", "Only %d Kad contacts available, nodes.dat not written", numContacts)) % numContacts);
319 file.WriteUInt32(numContacts);