Lines Matching refs:tag

38   // SetValue sets an element with the given tag to the raw, memory contents of
40 template<class T> void SetValue(QuicTag tag, const T& v) {
41 tag_value_map_[tag] =
45 // SetVector sets an element with the given tag to the raw contents of an
47 template<class T> void SetVector(QuicTag tag, const std::vector<T>& v) {
49 tag_value_map_[tag] = std::string();
51 tag_value_map_[tag] = std::string(reinterpret_cast<const char*>(&v[0]),
56 // Returns the message tag.
57 QuicTag tag() const { return tag_; }
58 // Sets the message tag.
59 void set_tag(QuicTag tag) { tag_ = tag; }
63 // SetTaglist sets an element with the given tag to contain a list of tags,
65 void SetTaglist(QuicTag tag, ...);
67 void SetStringPiece(QuicTag tag, base::StringPiece value);
69 // Erase removes a tag/value, if present, from the message.
70 void Erase(QuicTag tag);
72 // GetTaglist finds an element with the given tag containing zero or more
73 // tags. If such a tag doesn't exist, it returns false. Otherwise it sets
77 QuicErrorCode GetTaglist(QuicTag tag, const QuicTag** out_tags,
80 bool GetStringPiece(QuicTag tag, base::StringPiece* out) const;
82 // GetNthValue24 interprets the value with the given tag to be a series of
85 QuicErrorCode GetNthValue24(QuicTag tag,
88 QuicErrorCode GetUint16(QuicTag tag, uint16* out) const;
89 QuicErrorCode GetUint32(QuicTag tag, uint32* out) const;
90 QuicErrorCode GetUint64(QuicTag tag, uint64* out) const;
92 // size returns 4 (message tag) + 2 (uint16, number of entries) +
93 // (4 (tag) + 4 (end offset))*tag_value_map_.size() + ∑ value sizes.
97 // consume. The CryptoFramer will add a PAD tag as needed when serializing in
113 // |tag| exists in the message, and has a value of exactly |len| bytes then
119 QuicErrorCode GetPOD(QuicTag tag, void* out, size_t len) const;