PostGIS  2.1.10dev-r@@SVN_REVISION@@
void deparse_hex ( uint8_t  str,
char *  result 
)

Convert a char into a human readable hex digit.

Convert a char into a human readable hex digit.

Ie. deparse_hex( 255, mystr) -> mystr[0] = 'F' and mystr[1] = 'F'

No error checking done

Definition at line 739 of file lwgeom_api.c.

Referenced by convert_bytes_to_hex(), and rt_raster_to_hexwkb().

740 {
741  int input_high;
742  int input_low;
743  static char outchr[]=
744  {
745  "0123456789ABCDEF"
746  };
747 
748  input_high = (str>>4);
749  input_low = (str & 0x0F);
750 
751  result[0] = outchr[input_high];
752  result[1] = outchr[input_low];
753 
754 }
char ** result
Definition: liblwgeom.h:218

Here is the caller graph for this function: