• Home
  • Raw
  • Download

Lines Matching refs:count

35 ssize_t readExactBytes(int fd, void* buf, size_t count) {  in readExactBytes()  argument
36 if (count > SSIZE_MAX) { in readExactBytes()
40 while (read_count < count) { in readExactBytes()
41 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count); in readExactBytes()
48 return read_count == count ? count : -1; in readExactBytes()
122 uint32_t count; in getAInt8() local
123 if (!getUInt32(count)) in getAInt8()
126 for (uint32_t i = 0; i < count; i++) { in getAInt8()
138 uint32_t count; in getAUInt8() local
139 if (!getUInt32(count)) in getAUInt8()
142 for (uint32_t i = 0; i < count; i++) { in getAUInt8()
154 uint32_t count; in getAInt16() local
155 if (!getUInt32(count)) in getAInt16()
158 for (uint32_t i = 0; i < count; i++) { in getAInt16()
170 uint32_t count; in getAUInt16() local
171 if (!getUInt32(count)) in getAUInt16()
174 for (uint32_t i = 0; i < count; i++) { in getAUInt16()
186 uint32_t count; in getAInt32() local
187 if (!getUInt32(count)) in getAInt32()
190 for (uint32_t i = 0; i < count; i++) { in getAInt32()
202 uint32_t count; in getAUInt32() local
203 if (!getUInt32(count)) in getAUInt32()
206 for (uint32_t i = 0; i < count; i++) { in getAUInt32()
218 uint32_t count; in getAInt64() local
219 if (!getUInt32(count)) in getAInt64()
222 for (uint32_t i = 0; i < count; i++) { in getAInt64()
234 uint32_t count; in getAUInt64() local
235 if (!getUInt32(count)) in getAUInt64()
238 for (uint32_t i = 0; i < count; i++) { in getAUInt64()
351 void MtpDataPacket::putAInt8(const int8_t* values, int count) { in putAInt8() argument
352 putUInt32(count); in putAInt8()
353 for (int i = 0; i < count; i++) in putAInt8()
357 void MtpDataPacket::putAUInt8(const uint8_t* values, int count) { in putAUInt8() argument
358 putUInt32(count); in putAUInt8()
359 for (int i = 0; i < count; i++) in putAUInt8()
363 void MtpDataPacket::putAInt16(const int16_t* values, int count) { in putAInt16() argument
364 putUInt32(count); in putAInt16()
365 for (int i = 0; i < count; i++) in putAInt16()
369 void MtpDataPacket::putAUInt16(const uint16_t* values, int count) { in putAUInt16() argument
370 putUInt32(count); in putAUInt16()
371 for (int i = 0; i < count; i++) in putAUInt16()
376 size_t count = (values ? values->size() : 0); in putAUInt16() local
377 putUInt32(count); in putAUInt16()
378 for (size_t i = 0; i < count; i++) in putAUInt16()
382 void MtpDataPacket::putAInt32(const int32_t* values, int count) { in putAInt32() argument
383 putUInt32(count); in putAInt32()
384 for (int i = 0; i < count; i++) in putAInt32()
388 void MtpDataPacket::putAUInt32(const uint32_t* values, int count) { in putAUInt32() argument
389 putUInt32(count); in putAUInt32()
390 for (int i = 0; i < count; i++) in putAUInt32()
405 void MtpDataPacket::putAInt64(const int64_t* values, int count) { in putAInt64() argument
406 putUInt32(count); in putAInt64()
407 for (int i = 0; i < count; i++) in putAInt64()
411 void MtpDataPacket::putAUInt64(const uint64_t* values, int count) { in putAUInt64() argument
412 putUInt32(count); in putAUInt64()
413 for (int i = 0; i < count; i++) in putAUInt64()
427 int count = 0; in putString() local
430 count++; in putString()
434 putUInt8(count > 0 ? count + 1 : 0); in putString()
435 for (int i = 0; i < count; i++) in putString()
438 if (count > 0) in putString()