Lines Matching refs:hex
407 sms_address_from_hex ( SmsAddress address, const char* hex, int hexlen )
409 const char* hexend = hex + hexlen;
415 address->len = num_digits = gsm_hex2_to_byte( hex );
416 address->toa = gsm_hex2_to_byte( hex+2 );
417 hex += 4;
420 if (hex + len*2 > hexend)
424 address->data[nn] = gsm_hex2_to_byte( hex + nn*2 );
430 sms_address_to_hex ( SmsAddress address, char* hex, int hexlen )
435 if (hex == NULL)
439 gsm_hex_from_byte( hex, address->len );
441 gsm_hex_from_byte( hex+2, address->toa );
442 hex += 4;
448 gsm_hex_from_byte( hex+nn, address->data[nn/2] );
1326 smspdu_create_from_hex( const char* hex, int hexlen )
1341 if ( gsm_hex_to_bytes( (cbytes_t)hex, hexlen, p->base ) < 0 )
1362 smspdu_to_hex( SmsPDU pdu, char* hex, int hexlen )
1371 gsm_hex_from_byte( &hex[nn*2], pdu->base[nn] );