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