Home
last modified time | relevance | path

Searched refs:packedlen (Results 1 – 1 of 1) sorted by relevance

/external/libmtp/src/
Dptp-pack.c195 int packedlen = 0; in ptp_pack_string() local
226 packedlen = ucs2strlen(ucs2str); in ptp_pack_string()
227 if (packedlen > PTP_MAXSTRLEN-1) { in ptp_pack_string()
233 htod8a(&data[offset],packedlen+1); in ptp_pack_string()
234 memcpy(&data[offset+1], &ucs2str[0], packedlen * sizeof(ucs2str[0])); in ptp_pack_string()
235 htod16a(&data[offset+packedlen*2+1], 0x0000); /* terminate 0 */ in ptp_pack_string()
238 *len = (uint8_t) packedlen+1; in ptp_pack_string()