Home
last modified time | relevance | path

Searched refs:CBORTokenTag (Results 1 – 6 of 6) sorted by relevance

/third_party/node/tools/inspector_protocol/encoding/
Dencoding.cc641 CBORTokenTag CBORTokenizer::TokenTag() const { in TokenTag()
646 if (token_tag_ == CBORTokenTag::ERROR_VALUE || in Next()
647 token_tag_ == CBORTokenTag::DONE) in Next()
653 assert(token_tag_ == CBORTokenTag::ENVELOPE); in EnterEnvelope()
669 assert(token_tag_ == CBORTokenTag::INT32); in GetInt32()
678 assert(token_tag_ == CBORTokenTag::DOUBLE); in GetDouble()
689 assert(token_tag_ == CBORTokenTag::STRING8); in GetString8()
695 assert(token_tag_ == CBORTokenTag::STRING16); in GetString16WireRep()
701 assert(token_tag_ == CBORTokenTag::BINARY); in GetBinary()
707 assert(token_tag_ == CBORTokenTag::ENVELOPE); in GetEnvelopeContents()
[all …]
Dencoding_test.cc174 EXPECT_EQ(CBORTokenTag::INT32, tokenizer.TokenTag()); in TEST()
177 EXPECT_EQ(CBORTokenTag::DONE, tokenizer.TokenTag()); in TEST()
192 EXPECT_EQ(CBORTokenTag::INT32, tokenizer.TokenTag()); in TEST()
195 EXPECT_EQ(CBORTokenTag::DONE, tokenizer.TokenTag()); in TEST()
212 EXPECT_EQ(CBORTokenTag::INT32, tokenizer.TokenTag()); in TEST()
215 EXPECT_EQ(CBORTokenTag::DONE, tokenizer.TokenTag()); in TEST()
231 EXPECT_EQ(CBORTokenTag::INT32, tokenizer.TokenTag()); in TEST()
234 EXPECT_EQ(CBORTokenTag::DONE, tokenizer.TokenTag()); in TEST()
251 EXPECT_EQ(CBORTokenTag::INT32, tokenizer.TokenTag()); in TEST()
258 EXPECT_EQ(CBORTokenTag::DONE, tokenizer.TokenTag()); in TEST()
[all …]
Dencoding.h295 enum class CBORTokenTag { enum
355 CBORTokenTag TokenTag() const;
394 void SetToken(CBORTokenTag token, size_t token_byte_length);
398 CBORTokenTag token_tag_;
/third_party/node/tools/inspector_protocol/lib/
DValues_cpp.template76 using {{"::".join(config.encoding_lib.namespace + ['cbor'])}}::CBORTokenTag;
105 DCHECK(tokenizer->TokenTag() == cbor::CBORTokenTag::ARRAY_START);
108 while (tokenizer->TokenTag() != cbor::CBORTokenTag::STOP) {
110 if (tokenizer->TokenTag() == cbor::CBORTokenTag::DONE) return nullptr;
111 if (tokenizer->TokenTag() == cbor::CBORTokenTag::ERROR_VALUE) return nullptr;
126 if (tokenizer->TokenTag() == cbor::CBORTokenTag::ENVELOPE)
129 case cbor::CBORTokenTag::ERROR_VALUE:
131 case cbor::CBORTokenTag::DONE:
134 case cbor::CBORTokenTag::TRUE_VALUE: {
139 case cbor::CBORTokenTag::FALSE_VALUE: {
[all …]
Dencoding_cpp.template649 CBORTokenTag CBORTokenizer::TokenTag() const {
654 if (token_tag_ == CBORTokenTag::ERROR_VALUE ||
655 token_tag_ == CBORTokenTag::DONE)
661 assert(token_tag_ == CBORTokenTag::ENVELOPE);
677 assert(token_tag_ == CBORTokenTag::INT32);
686 assert(token_tag_ == CBORTokenTag::DOUBLE);
697 assert(token_tag_ == CBORTokenTag::STRING8);
703 assert(token_tag_ == CBORTokenTag::STRING16);
709 assert(token_tag_ == CBORTokenTag::BINARY);
715 assert(token_tag_ == CBORTokenTag::ENVELOPE);
[all …]
Dencoding_h.template304 enum class CBORTokenTag {
364 CBORTokenTag TokenTag() const;
368 // Can only be called if TokenTag() == CBORTokenTag::ENVELOPE.
374 // If TokenTag() is CBORTokenTag::ERROR_VALUE, then Status().error describes
382 // To be called only if ::TokenTag() == CBORTokenTag::INT32.
385 // To be called only if ::TokenTag() == CBORTokenTag::DOUBLE.
388 // To be called only if ::TokenTag() == CBORTokenTag::STRING8.
392 // To be called only if ::TokenTag() == CBORTokenTag::STRING16.
395 // To be called only if ::TokenTag() == CBORTokenTag::BINARY.
398 // To be called only if ::TokenTag() == CBORTokenTag::ENVELOPE.
[all …]