Searched refs:packedlen (Results 1 – 1 of 1) sorted by relevance
162 int packedlen; in ptp_pack_string() local193 packedlen = ucs2strlen(ucs2str); in ptp_pack_string()194 if (packedlen > PTP_MAXSTRLEN-1) { in ptp_pack_string()200 htod8a(&data[offset],packedlen+1); in ptp_pack_string()201 memcpy(&data[offset+1], &ucs2str[0], packedlen * sizeof(ucs2str[0])); in ptp_pack_string()202 htod16a(&data[offset+packedlen*2+1], 0x0000); /* terminate 0 */ in ptp_pack_string()205 *len = (uint8_t) packedlen+1; in ptp_pack_string()