Lines Matching defs:bufferSize
438 Hub::BuildDeviceName(char *string, uint32 *index, size_t bufferSize,
441 status_t result = Device::BuildDeviceName(string, index, bufferSize, device);
444 if (*index < bufferSize) {
446 size_t totalBytes = snprintf(string + *index, bufferSize - *index,
448 *index += std::min(totalBytes, (size_t)(bufferSize - *index - 1));
454 if (*index < bufferSize) {
455 size_t totalBytes = snprintf(string + *index, bufferSize - *index,
457 *index += std::min(totalBytes, (size_t)(bufferSize - *index - 1));
463 if (*index < bufferSize) {
465 bufferSize - *index, "/%" B_PRId32, i);
467 (size_t)(bufferSize - *index - 1));