Lines Matching defs:TLVHead
28 struct TLVHead {
60 bool Read(std::string &value, const TLVHead &head);
61 bool Read(std::vector<uint8_t> &value, const TLVHead &head);
62 bool Read(OHOS::AAFwk::Want &value, const TLVHead &head);
63 bool Read(std::monostate &value, const TLVHead &head);
64 bool Read(void *value, const TLVHead &head);
68 template <typename T> bool ReadBasic(T &value, const TLVHead &head);
73 bool ReadHead(TLVHead &head);
75 bool Skip(TLVHead &head);
95 auto size = sizeof(value) + sizeof(TLVHead);
103 if (!HasExpectBuffer(sizeof(TLVHead) + sizeof(value))) {
106 auto tlvHead = reinterpret_cast<TLVHead *>(GetStartCursor());
113 cursor_ += sizeof(TLVHead) + sizeof(value);
117 template <typename T> bool TLVObject::ReadBasic(T &value, const TLVHead &head)