Lines Matching refs:count
36 ssize_t readExactBytes(int fd, void* buf, size_t count) { in readExactBytes() argument
37 if (count > SSIZE_MAX) { in readExactBytes()
41 while (read_count < count) { in readExactBytes()
42 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count); in readExactBytes()
49 return read_count == count ? count : -1; in readExactBytes()
123 uint32_t count; in getAInt8() local
124 if (!getUInt32(count)) in getAInt8()
127 for (uint32_t i = 0; i < count; i++) { in getAInt8()
139 uint32_t count; in getAUInt8() local
140 if (!getUInt32(count)) in getAUInt8()
143 for (uint32_t i = 0; i < count; i++) { in getAUInt8()
155 uint32_t count; in getAInt16() local
156 if (!getUInt32(count)) in getAInt16()
159 for (uint32_t i = 0; i < count; i++) { in getAInt16()
171 uint32_t count; in getAUInt16() local
172 if (!getUInt32(count)) in getAUInt16()
175 for (uint32_t i = 0; i < count; i++) { in getAUInt16()
187 uint32_t count; in getAInt32() local
188 if (!getUInt32(count)) in getAInt32()
191 for (uint32_t i = 0; i < count; i++) { in getAInt32()
203 uint32_t count; in getAUInt32() local
204 if (!getUInt32(count)) in getAUInt32()
207 for (uint32_t i = 0; i < count; i++) { in getAUInt32()
219 uint32_t count; in getAInt64() local
220 if (!getUInt32(count)) in getAInt64()
223 for (uint32_t i = 0; i < count; i++) { in getAInt64()
235 uint32_t count; in getAUInt64() local
236 if (!getUInt32(count)) in getAUInt64()
239 for (uint32_t i = 0; i < count; i++) { in getAUInt64()
352 void MtpDataPacket::putAInt8(const int8_t* values, int count) { in putAInt8() argument
353 putUInt32(count); in putAInt8()
354 for (int i = 0; i < count; i++) in putAInt8()
358 void MtpDataPacket::putAUInt8(const uint8_t* values, int count) { in putAUInt8() argument
359 putUInt32(count); in putAUInt8()
360 for (int i = 0; i < count; i++) in putAUInt8()
364 void MtpDataPacket::putAInt16(const int16_t* values, int count) { in putAInt16() argument
365 putUInt32(count); in putAInt16()
366 for (int i = 0; i < count; i++) in putAInt16()
370 void MtpDataPacket::putAUInt16(const uint16_t* values, int count) { in putAUInt16() argument
371 putUInt32(count); in putAUInt16()
372 for (int i = 0; i < count; i++) in putAUInt16()
377 size_t count = (values ? values->size() : 0); in putAUInt16() local
378 putUInt32(count); in putAUInt16()
379 for (size_t i = 0; i < count; i++) in putAUInt16()
383 void MtpDataPacket::putAInt32(const int32_t* values, int count) { in putAInt32() argument
384 putUInt32(count); in putAInt32()
385 for (int i = 0; i < count; i++) in putAInt32()
389 void MtpDataPacket::putAUInt32(const uint32_t* values, int count) { in putAUInt32() argument
390 putUInt32(count); in putAUInt32()
391 for (int i = 0; i < count; i++) in putAUInt32()
406 void MtpDataPacket::putAInt64(const int64_t* values, int count) { in putAInt64() argument
407 putUInt32(count); in putAInt64()
408 for (int i = 0; i < count; i++) in putAInt64()
412 void MtpDataPacket::putAUInt64(const uint64_t* values, int count) { in putAUInt64() argument
413 putUInt32(count); in putAUInt64()
414 for (int i = 0; i < count; i++) in putAUInt64()
433 int count = 0; in putString() local
436 count++; in putString()
440 putUInt8(count > 0 ? count + 1 : 0); in putString()
441 for (int i = 0; i < count; i++) in putString()
444 if (count > 0) in putString()