Lines Matching defs:hex
918 /* transform data from/to bit-representation to/from hex-representation */
919 ssize_t vchexcode(Vcchar_t* byte, ssize_t bytez, Vcchar_t* hex, ssize_t hexz, int type)
937 if(!byte || !hex)
940 if(type >= 0) /* byte to hex */
950 hex[h] = dig[(byte[b]>>4) & 0xf];
951 hex[h+1] = dig[(byte[b]>>0) & 0xf];
955 hex[h] = 0;
958 else /* hex to byte, allow mixed case */
963 (l = Rev[hex[h+0]]) == (Vcchar_t)(~0) ||
964 (r = Rev[hex[h+1]]) == (Vcchar_t)(~0) )