PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ convert_bytes_to_hex()

char * convert_bytes_to_hex ( uint8_t *  ewkb,
size_t  size 
)

Binary to hexewkb conversion function.

Definition at line 699 of file pgsql2shp-core.c.

700 {
701  size_t i;
702  char *hexewkb;
703 
704  /* Convert the byte stream to a hex string using liblwgeom's deparse_hex function */
705  hexewkb = malloc(size * 2 + 1);
706  for (i=0; i<size; ++i) deparse_hex(ewkb[i], &hexewkb[i * 2]);
707  hexewkb[size * 2] = '\0';
708 
709  return hexewkb;
710 }
void deparse_hex(uint8_t str, char *result)
Convert a char into a human readable hex digit.
Definition: lwgeom_api.c:617
void * malloc(YYSIZE_T)

References deparse_hex(), and malloc().

Referenced by ShpLoaderGenerateShapeRow().

Here is the call graph for this function:
Here is the caller graph for this function: