Lines Matching refs:hexlen
406 sms_address_from_hex ( SmsAddress address, const char* hex, int hexlen ) in sms_address_from_hex() argument
408 const char* hexend = hex + hexlen; in sms_address_from_hex()
411 if (hexlen < 4) in sms_address_from_hex()
429 sms_address_to_hex ( SmsAddress address, char* hex, int hexlen ) in sms_address_to_hex() argument
435 hexlen = 0; in sms_address_to_hex()
437 if (hexlen < 2) goto Exit; in sms_address_to_hex()
439 if (hexlen < 4) goto Exit; in sms_address_to_hex()
442 hexlen -= 4; in sms_address_to_hex()
443 if ( hexlen > 2*(len - 2) ) in sms_address_to_hex()
444 hexlen = (len - 2)/2; in sms_address_to_hex()
446 for ( nn = 0; nn < hexlen; nn += 2 ) in sms_address_to_hex()
1325 smspdu_create_from_hex( const char* hex, int hexlen ) in smspdu_create_from_hex() argument
1333 p->base = malloc( (hexlen+1)/2 ); in smspdu_create_from_hex()
1340 if ( gsm_hex_to_bytes( (cbytes_t)hex, hexlen, p->base ) < 0 ) in smspdu_create_from_hex()
1343 p->end = p->base + (hexlen+1)/2; in smspdu_create_from_hex()
1361 smspdu_to_hex( SmsPDU pdu, char* hex, int hexlen ) in smspdu_to_hex() argument
1366 if (hexlen > result) in smspdu_to_hex()
1367 hexlen = result; in smspdu_to_hex()
1369 for (nn = 0; nn*2 < hexlen; nn++) { in smspdu_to_hex()