Lines Matching refs:head
264 bool TLVObject::ReadHead(const std::vector<std::uint8_t> &buffer, TLVHead &head)
274 head.tag = NetToHost(pHead->tag);
275 head.len = NetToHost(pHead->len);
279 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, std::monostate &value, const TLVHead &head)
283 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, void *value, const TLVHead &head)
287 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, bool &value, const TLVHead &head)
289 return ReadBasicValue(buffer, value, head);
291 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, int8_t &value, const TLVHead &head)
293 return ReadBasicValue(buffer, value, head);
295 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, int16_t &value, const TLVHead &head)
297 return ReadBasicValue(buffer, value, head);
299 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, int32_t &value, const TLVHead &head)
301 return ReadBasicValue(buffer, value, head);
304 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, int64_t &value, const TLVHead &head)
306 return ReadBasicValue(buffer, value, head);
308 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, double &value, const TLVHead &head)
310 return ReadBasicValue(buffer, value, head);
312 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, uint32_t &value, const TLVHead &head)
314 return ReadBasicValue(buffer, value, head);
316 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, std::string &value, const TLVHead &head)
318 if (!HasExpectBuffer(buffer, head.len)) {
321 value.append(reinterpret_cast<const char *>(buffer.data() + cursor_), head.len);
322 cursor_ += head.len;
325 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, RawMem &rawMem, const TLVHead &head)
327 if (!HasExpectBuffer(buffer, head.len)) {
331 rawMem.bufferLen = head.len;
332 cursor_ += head.len;
336 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, TLVObject &value, const TLVHead &head)
338 return value.Decode(buffer, cursor_, cursor_ + head.len);
340 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, std::vector<uint8_t> &value, const TLVHead &head)
342 if (!HasExpectBuffer(buffer, head.len)) {
345 std::vector<uint8_t> buff(buffer.data() + cursor_, buffer.data() + cursor_ + head.len);
347 cursor_ += head.len;
351 const std::vector<std::uint8_t> &buffer, std::map<std::string, std::vector<uint8_t>> &value, const TLVHead &head)
353 auto mapEnd = cursor_ + head.len;
376 const std::vector<std::uint8_t> &buffer, uint32_t step, uint32_t index, _OutTp &output, const TLVHead &head)
383 const std::vector<std::uint8_t> &buffer, uint32_t step, uint32_t index, _OutTp &value, const TLVHead &head)
393 return ReadVariant<_OutTp, _Rest...>(buffer, step + 1, index, value, head);
397 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, std::variant<_Types...> &value, const TLVHead &head)
409 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, EntryValue &value, const TLVHead &head)
423 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, Details &value, const TLVHead &head)
425 auto mapEnd = cursor_ + head.len;
448 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, Object &value, const TLVHead &head)
450 auto mapEnd = cursor_ + head.len;
465 if (!ReadValue(buffer, itemValue, head)) {
473 bool TLVObject::ReadValue(const std::vector<std::uint8_t> &buffer, AAFwk::Want &value, const TLVHead &head)
476 if (!ReadValue(buffer, rawMem, head)) {
488 const std::vector<std::uint8_t> &buffer, std::shared_ptr<Media::PixelMap> &value, const TLVHead &head)
491 if (!ReadValue(buffer, u8Value, head)) {