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

Given one byte, populate result with two byte representing the hex number.

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 787 of file lwgeom_api.c.

Referenced by convert_bytes_to_hex().

788 {
789  int input_high;
790  int input_low;
791  static char outchr[]=
792  {
793  "0123456789ABCDEF"
794  };
795 
796  input_high = (str>>4);
797  input_low = (str & 0x0F);
798 
799  result[0] = outchr[input_high];
800  result[1] = outchr[input_low];
801 
802 }

Here is the caller graph for this function: