Definition at line 197 of file lwout_wkb.c.
198{
199 uint8_t *iptr = (uint8_t *)(&ival);
200 int i = 0;
201
203 {
205 }
206 LWDEBUGF(4,
"Writing value '%u'", ival);
208 {
210
212 {
214 uint8_t b = iptr[j];
215
216 buf[2*i] =
hexchr[b >> 4];
217
218 buf[2*i+1] =
hexchr[b & 0x0F];
219 }
221 }
222 else
223 {
224
226 {
228 {
230 }
231 }
232
233 else
234 {
236 }
238 }
239}
#define LWDEBUGF(level, msg,...)
void void lwerror(const char *fmt,...) __attribute__((format(printf
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().