Definition at line 196 of file lwout_wkb.c.
197{
198 uint8_t *iptr = (uint8_t *)(&ival);
199 int i = 0;
200
202 {
204 }
205 LWDEBUGF(4,
"Writing value '%u'", ival);
207 {
209
211 {
213 uint8_t b = iptr[j];
214
215 buf[2*i] =
hexchr[b >> 4];
216
217 buf[2*i+1] =
hexchr[b & 0x0F];
218 }
220 }
221 else
222 {
223
225 {
227 {
229 }
230 }
231
232 else
233 {
235 }
237 }
238}
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static int wkb_swap_bytes(uint8_t variant)
References hexchr, LWDEBUGF, lwerror(), variant, WKB_HEX, WKB_INT_SIZE, and wkb_swap_bytes().
Referenced by empty_to_wkb_buf(), lwcollection_to_wkb_buf(), lwline_to_wkb_buf(), lwpoint_to_wkb_buf(), lwpoly_to_wkb_buf(), lwtriangle_to_wkb_buf(), and ptarray_to_wkb_buf().