Lines Matching refs:len
34 void FillTestBuffer(Parcel &parcel, void *p, uint32_t len) in FillTestBuffer() argument
36 if (len == 0) { in FillTestBuffer()
40 auto buffer = parcel.ReadBuffer(len); in FillTestBuffer()
42 cout << "ReadBuffer len " << len << " fail!" << endl; in FillTestBuffer()
46 if (memcpy_s(p, len, buffer, len) != EOK) { in FillTestBuffer()
57 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestUint8Vector() local
58 uint32_t memLen = len * sizeof(uint8_t); in FillTestUint8Vector()
59 data.resize(len); in FillTestUint8Vector()
61 cout << "fill vector len " << len << "ok" << endl; in FillTestUint8Vector()
66 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestInt8Vector() local
67 uint32_t memLen = len * sizeof(int8_t); in FillTestInt8Vector()
68 data.resize(len); in FillTestInt8Vector()
70 cout << "fill vector len " << len << "ok" << endl; in FillTestInt8Vector()
75 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestUint32Vector() local
76 uint32_t memLen = len * sizeof(uint32_t); in FillTestUint32Vector()
77 data.resize(len); in FillTestUint32Vector()
79 cout << "fill vector len " << len << "ok" << endl; in FillTestUint32Vector()
84 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestUint64Vector() local
85 uint32_t memLen = len * sizeof(uint64_t); in FillTestUint64Vector()
86 data.resize(len); in FillTestUint64Vector()
88 cout << "fill vector len " << len << "ok" << endl; in FillTestUint64Vector()
93 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN + 1; in FillTestString() local
94 uint32_t memLen = len * sizeof(char); in FillTestString()
95 std::vector<char> data(len, 0); in FillTestString()
98 cout << "fill string len " << (len - 1) << " ok" << endl; in FillTestString()