Lines Matching defs:tag
408 // NOTE: This tag data type is accepted and stored only to give us the possibility to upgrade
413 // - those tag types have to be ignored by any client, otherwise those tags would also be sent (and
417 // get never stored in any tag list which might be sent by that client to some other client.
421 // be built with the knowledge that the 'nr. of tags' attribute may get decreased during the tag
457 // NOTE: This tag data type is accepted and stored only to give us the possibility to upgrade
471 throw wxString(CFormat(wxT("Invalid Kad tag type; type=0x%02x name=%s\n")) % type % name);
493 CTag* tag = ReadTag(bOptACP);
494 taglist->push_back(tag);
499 void CFileDataIO::WriteTag(const CTag& tag)
503 WriteUInt8(tag.GetType());
505 if (!tag.GetName().IsEmpty()) {
506 WriteString(tag.GetName(),utf8strNone);
509 WriteUInt8(tag.GetNameID());
512 switch (tag.GetType())
516 WriteHash(CMD4Hash(tag.GetHash()));
519 WriteString(tag.GetStr(), utf8strRaw); // Always UTF8
522 WriteUInt64(tag.GetInt());
525 WriteUInt32(tag.GetInt());
528 WriteFloat(tag.GetFloat());
531 WriteBsob(tag.GetBsob(), tag.GetBsobSize());
534 WriteUInt16(tag.GetInt());
537 WriteUInt8(tag.GetInt());
542 WriteUInt32(tag.GetBlobSize());
543 Write(tag.GetBlob(), tag.GetBlobSize());
546 //TODO: Support more tag types
548 AddLogLineNS(CFormat(wxT("CFileDataIO::WriteTag: Unknown tag: type=0x%02X")) % tag.GetType());
596 throw wxString(wxT("Wrong tag type reading int tag"));