Writes a float64 to the buffer.
Definition at line 311 of file bytebuffer.c.
References bytebuffer_t::buf_start, bytebuffer_makeroom(), LWDEBUG, LWDEBUGF, lwerror(), WKB_DOUBLE_SIZE, and bytebuffer_t::writecursor.
313 LWDEBUGF(2,
"Entered bytebuffer_append_double with value %lf swap = %d", val, swap);
316 char *dptr = (
char*)(&val);
329 LWDEBUG(4,
"Ok, let's do the swapping thing");
332 *(buf->
writecursor) = dptr[WKB_DOUBLE_SIZE - 1 - i];
339 LWDEBUG(4,
"Ok, let's do the memcopying thing");
344 LWDEBUG(4,
"Return from bytebuffer_append_double");
#define WKB_DOUBLE_SIZE
Well-Known Binary (WKB) Output Variant Types.
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
static void bytebuffer_makeroom(bytebuffer_t *s, size_t size_to_add)
If necessary, expand the bytebuffer_t internal buffer to accomodate the specified additional size...
void lwerror(const char *fmt,...)
Write a notice out to the error handler.