Lines Matching defs:length
775 int32_t length, std::vector<uint8_t> &bufferData, int32_t timeOut)
785 int32_t ret = usbd_->BulkTransferReadwithLength(devInfo, pipe, timeOut, length, bufferData);
1056 size_t length = strV.size();
1057 if ((length < DESCRIPTOR_VALUE_START_OFFSET) || (strV[1] != DESCRIPTOR_TYPE_STRING)) {
1058 USB_HILOGI(MODULE_USB_SERVICE, "type or length error, len:%{public}zu", length);
1062 uint16_t *tbuf = new (std::nothrow) uint16_t[length + 1]();
1068 for (uint32_t i = 0; i < length - DESCRIPTOR_VALUE_START_OFFSET; ++i) {
1071 size_t bufLen = (length - DESCRIPTOR_VALUE_START_OFFSET) / HALF;
1075 USB_HILOGI(MODULE_USB_SERVICE, "getString idx:%{public}d length:%{public}zu, str: %{public}s",
1076 idx, strDesc.length(), strDesc.c_str());
1148 uint32_t length = descriptor.size();
1149 if ((!buffer) || (length == 0)) {
1151 length, uDev.busNum, uDev.devAddr);
1158 ret = UsbDescriptorParser::ParseDeviceDescriptor(buffer, length, dev);