Lines Matching defs:data
26 static bool MarshallingVectorParcelableObj(Parcel& parcel, const std::vector<sptr<T>>& data)
28 if (data.size() > INT_MAX) {
31 if (!parcel.WriteInt32(static_cast<int32_t>(data.size()))) {
34 for (const auto &v : data) {
43 static bool UnmarshallingVectorParcelableObj(Parcel& parcel, std::vector<sptr<T>>& data)
52 if ((size > readAbleSize) || (size > data.max_size())) {
55 data.resize(size);
56 if (data.size() < size) {
65 data[i] = parcel.ReadParcelable<T>();
66 if (data[i] == nullptr) {
74 static bool MarshallingVectorObj(Parcel& parcel, const std::vector<T>& data,
77 if (data.size() > INT_MAX) {
83 if (!parcel.WriteInt32(static_cast<int32_t>(data.size()))) {
86 for (const auto &v : data) {
95 static bool UnmarshallingVectorObj(Parcel& parcel, std::vector<T>& data, std::function<bool(Parcel&, T&)> func)
107 if ((size > readAbleSize) || (size > data.max_size())) {
110 data.resize(size);
111 if (data.size() < size) {
116 if (!func(parcel, data[i])) {