Home | History | Annotate | Download | only in telephony

Lines Matching refs:hex

128 gsm_hex2_to_byte( const char*  hex )
130 int hi = gsm_hexchar_to_int(hex[0]);
131 int lo = gsm_hexchar_to_int(hex[1]);
140 gsm_hex4_to_short( const char* hex )
142 int hi = gsm_hex2_to_byte(hex);
143 int lo = gsm_hex2_to_byte(hex+2);
152 gsm_hex2_to_byte0( const char* hex )
154 int hi = gsm_hexchar_to_int0(hex[0]);
155 int lo = gsm_hexchar_to_int0(hex[1]);
161 gsm_hex_from_byte( char* hex, int val )
165 hex[0] = hexdigits[(val >> 4) & 15];
166 hex[1] = hexdigits[val & 15];
170 gsm_hex_from_short( char* hex, int val )
172 gsm_hex_from_byte( hex, (val >> 8) );
173 gsm_hex_from_byte( hex+2, val );
178 /** HEX
181 gsm_hex_to_bytes0( cbytes_t hex, int hexlen, bytes_t dst )
186 dst[nn] = (byte_t) gsm_hex2_to_byte0( (const char*)hex+2*nn );
189 dst[nn] = gsm_hexchar_to_int0( hex[2*nn] ) << 4;
194 gsm_hex_to_bytes( cbytes_t hex, int hexlen, bytes_t dst )
202 int c = gsm_hex2_to_byte( (const char*)hex+2*nn );
210 gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen )
215 gsm_hex_from_byte( hex + 2*nn, src[nn] );