Definition at line 86 of file lwin_wkb.c.
References hex2char, lwalloc(), and lwerror().
Referenced by lwgeom_from_hexwkb(), and LWGEOM_in().
93 lwerror(
"Invalid hex string, length (%d) has to be a multiple of two!", hexsize);
98 lwerror(
"Unable to allocate memory buffer.");
100 for( i = 0; i < hexsize/2; i++ )
105 lwerror(
"Invalid hex character (%c) encountered", hexbuf[2*i]);
107 lwerror(
"Invalid hex character (%c) encountered", hexbuf[2*i+1]);
109 buf[i] = ((h1 & 0x0F) << 4) | (h2 & 0x0F);
static uint8_t hex2char[256]
void * lwalloc(size_t size)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.