Home
last modified time | relevance | path

Searched refs:TLVObject (Results 1 - 18 of 18) sorted by relevance

/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/mock/
H A Dtlv_object_mock.cpp19 TLVObject::TLVObject(std::vector<std::uint8_t> &buffer) in TLVObject() function in OHOS::UDMF::TLVObject
27 void TLVObject::SetFile(std::FILE *file) in SetFile()
32 void TLVObject::UpdateSize() in UpdateSize()
40 std::vector<std::uint8_t> TLVObject::GetBuffer() in GetBuffer()
45 size_t TLVObject::GetTotal() in GetTotal()
50 size_t TLVObject::GetCursor() in GetCursor()
55 size_t TLVObject::OffsetHead() in OffsetHead()
64 void TLVObject::ResetCursor() in ResetCursor()
72 size_t TLVObject
[all...]
/foundation/distributeddatamgr/udmf/framework/common/unittest/mock/
H A Dtlv_util_mock.cpp21 template <> size_t CountBufferSize(const std::nullptr_t &input, TLVObject &data) in CountBufferSize()
26 template <> bool Writing(const std::nullptr_t &input, TLVObject &data, TAG tag) in Writing()
31 template <> bool Reading(std::nullptr_t &output, TLVObject &data, const TLVHead &head) in Reading()
36 template <> size_t CountBufferSize(const std::monostate &input, TLVObject &data) in CountBufferSize()
41 template <> bool Writing(const std::monostate &input, TLVObject &data, TAG tag) in Writing()
46 template <> bool Reading(std::monostate &output, TLVObject &data, const TLVHead &head) in Reading()
51 template <> size_t CountBufferSize(const std::string &input, TLVObject &data) in CountBufferSize()
56 template <> bool Writing(const std::string &input, TLVObject &data, TAG tag) in Writing()
61 template <> bool Reading(std::string &output, TLVObject &data, const TLVHead &head) in Reading()
66 template <> size_t CountBufferSize(const std::vector<uint8_t> &input, TLVObject
[all...]
/foundation/distributeddatamgr/udmf/framework/common/
H A Dtlv_util.h33 template <typename T> bool API_EXPORT ReadTlv(T &output, TLVObject &data, TAG tag);
35 template <typename T> size_t API_EXPORT CountBufferSize(const T &input, TLVObject &data);
36 template <typename T> bool API_EXPORT Writing(const T &input, TLVObject &data, TAG tag);
37 template <typename T> bool API_EXPORT Reading(T &output, TLVObject &data, const TLVHead &head);
39 template <typename... _Types> size_t API_EXPORT CountBufferSize(const std::variant<_Types...> &input, TLVObject &data);
40 template <typename... _Types> bool API_EXPORT Writing(const std::variant<_Types...> &input, TLVObject &data, TAG tag);
42 bool API_EXPORT Reading(std::variant<_Types...> &output, TLVObject &data, const TLVHead &head);
44 template <typename T> size_t API_EXPORT CountBufferSize(const std::shared_ptr<T> &input, TLVObject &data);
45 template <typename T> bool API_EXPORT Writing(const std::shared_ptr<T> &input, TLVObject &data, TAG tag);
46 template <typename T> bool API_EXPORT Reading(std::shared_ptr<T> &output, TLVObject
[all...]
H A Dtlv_object.cpp22 TLVObject::TLVObject(std::vector<std::uint8_t> &buffer) in TLVObject() function in OHOS::UDMF::TLVObject
30 void TLVObject::SetFile(std::FILE *file) in SetFile()
46 void TLVObject::UpdateSize() in UpdateSize()
54 std::vector<std::uint8_t> TLVObject::GetBuffer() in GetBuffer()
59 size_t TLVObject::GetTotal() in GetTotal()
64 size_t TLVObject::GetCursor() in GetCursor()
69 size_t TLVObject::OffsetHead() in OffsetHead()
81 void TLVObject::ResetCursor() in ResetCursor()
91 size_t TLVObject
[all...]
H A Dtlv_util.cpp25 template <> size_t CountBufferSize(const std::nullptr_t &input, TLVObject &data) in CountBufferSize()
30 template <> bool Writing(const std::nullptr_t &input, TLVObject &data, TAG tag) in Writing()
36 template <> bool Reading(std::nullptr_t &output, TLVObject &data, const TLVHead &head) in Reading()
41 template <> size_t CountBufferSize(const std::monostate &input, TLVObject &data) in CountBufferSize()
46 template <> bool Writing(const std::monostate &input, TLVObject &data, TAG tag) in Writing()
52 template <> bool Reading(std::monostate &output, TLVObject &data, const TLVHead &head) in Reading()
57 template <> size_t CountBufferSize(const std::string &input, TLVObject &data) in CountBufferSize()
62 template <> bool Writing(const std::string &input, TLVObject &data, TAG tag) in Writing()
68 template <> bool Reading(std::string &output, TLVObject &data, const TLVHead &head) in Reading()
73 template <> size_t CountBufferSize(const std::vector<uint8_t> &input, TLVObject
[all...]
H A Dtlv_object.h35 class API_EXPORT TLVObject { class
37 TLVObject() = default;
38 ~TLVObject() = default;
39 explicit TLVObject(std::vector<std::uint8_t> &buffer);
92 template <typename T> size_t TLVObject::CountBasic(const T &value) in CountBasic()
100 template <typename T> bool TLVObject::WriteBasic(TAG type, const T &value) in WriteBasic()
117 template <typename T> bool TLVObject::ReadBasic(T &value, const TLVHead &head) in ReadBasic()
H A Dudmf_types_util.cpp29 auto recordTlv = TLVObject(dataBytes); in Marshalling()
57 auto dataTlv = TLVObject(dataBytes); in Unmarshalling()
70 auto recordTlv = TLVObject(dataSetBytes); in Marshalling()
97 auto dataTlv = TLVObject(dataSetBytes); in Unmarshalling()
/foundation/distributeddatamgr/pasteboard/framework/tlv/
H A Dtlv_object.cpp21 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, std::monostate value) in Write()
29 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, void *value) in Write()
37 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, bool value) in Write()
41 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, int8_t value) in Write()
45 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, int16_t value) in Write()
49 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, double value) in Write()
53 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, int32_t value) in Write()
57 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, int64_t value) in Write()
61 bool TLVObject::Write(std::vector<std::uint8_t> &buffer, uint16_t type, uint32_t value) in Write()
65 bool TLVObject in Write()
[all...]
H A Dtlv_object.h60 struct API_EXPORT TLVObject { struct
62 TLVObject() : total_(0), cursor_(0) {} in TLVObject() function
109 static inline size_t Count(TLVObject &value) in Count()
236 bool Write(std::vector<std::uint8_t> &buffer, uint16_t type, TLVObject &value);
291 bool ReadValue(const std::vector<std::uint8_t> &buffer, TLVObject &value, const TLVHead &head);
341 virtual ~TLVObject() = default;
/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/
H A Dpaste_data.cpp517 expectSize += TLVObject::Count(records_); in Count()
518 expectSize += TLVObject::Count(isDraggedData_); in Count()
519 expectSize += TLVObject::Count(isLocalPaste_); in Count()
520 expectSize += TLVObject::Count(isDelayData_); in Count()
521 expectSize += TLVObject::Count(deviceId_); in Count()
522 expectSize += TLVObject::Count(pasteId_); in Count()
523 expectSize += TLVObject::Count(isDelayRecord_); in Count()
524 expectSize += TLVObject::Count(dataId_); in Count()
725 expectedSize += TLVObject::Count(ParcelUtil::Parcelable2Raw(&additions)); in Count()
726 expectedSize += TLVObject in Count()
[all...]
H A Dpaste_data_record.cpp404 expectedSize += TLVObject::Count(mimeType_); in Count()
405 expectedSize += TLVObject::Count(htmlText_); in Count()
406 expectedSize += TLVObject::Count(ParcelUtil::Parcelable2Raw(want_.get())); in Count()
407 expectedSize += TLVObject::Count(plainText_); in Count()
408 expectedSize += TLVObject::Count(ParcelUtil::Parcelable2Raw(uri_.get())); in Count()
409 expectedSize += TLVObject::Count(convertUri_); in Count()
411 expectedSize += TLVObject::Count(pixelVector); in Count()
412 expectedSize += TLVObject::Count(customData_); in Count()
413 expectedSize += TLVObject::Count(hasGrantUriPermission_); in Count()
414 expectedSize += TLVObject in Count()
[all...]
H A Dpaste_data_entry.cpp72 return TLVObject::Count(itemData_); in Count()
184 expectedSize += TLVObject::Count(utdId_); in Count()
185 expectedSize += TLVObject::Count(mimeType_); in Count()
186 expectedSize += TLVObject::Count(value_); in Count()
/foundation/distributeddatamgr/pasteboard/framework/innerkits/include/
H A Dpaste_data_entry.h24 class API_EXPORT MineCustomData : public TLVObject {
37 class API_EXPORT PasteDataEntry : public TLVObject {
H A Dpaste_data.h37 struct API_EXPORT PasteDataProperty : public TLVObject {
60 class API_EXPORT PasteData : public TLVObject, public Parcelable {
H A Dpaste_data_record.h47 class API_EXPORT PasteDataRecord : public TLVObject {
/foundation/distributeddatamgr/udmf/framework/common/unittest/
H A Dtlv_util_test.cpp67 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
109 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
140 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
168 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
195 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
304 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
366 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
472 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
534 auto tlvObject = TLVObject(dataBytes); in HWTEST_F()
588 auto tlvObject = TLVObject(dataByte in HWTEST_F()
[all...]
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/
H A Dunified_data_helper.cpp166 auto recordTlv = TLVObject(dataBytes); in SaveUDataToFile()
187 auto recordTlv = TLVObject(dataBytes); in LoadUDataFromFile()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/store/
H A Druntime_store.cpp113 auto runtimeTlv = TLVObject(runtimeBytes); in Put()
125 auto recordTlv = TLVObject(recordBytes); in Put()
596 auto runtimeTlv = TLVObject(const_cast<std::vector<uint8_t> &>(entry.value)); in UnmarshalEntries()
604 auto recordTlv = TLVObject(const_cast<std::vector<uint8_t> &>(entry.value)); in UnmarshalEntries()

Completed in 15 milliseconds