PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char byte_from_wkb_state ( wkb_parse_state s)

Byte Read a byte and advance the parse state forward.

Definition at line 231 of file lwin_wkb.c.

References LWDEBUG, LWDEBUGF, wkb_parse_state::pos, WKB_BYTE_SIZE, and wkb_parse_state_check().

Referenced by lwgeom_from_wkb_state().

232 {
233  char char_value = 0;
234  LWDEBUG(4, "Entered function");
237  LWDEBUG(4, "Passed state check");
239  char_value = s->pos[0];
240  LWDEBUGF(4, "Read byte value: %x", char_value);
241  s->pos += WKB_BYTE_SIZE;
243  return char_value;
244 }
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
static void wkb_parse_state_check(wkb_parse_state *s, size_t next)
Check that we are not about to read off the end of the WKB array.
Definition: lwin_wkb.c:108
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
const uint8_t * pos
Definition: lwin_wkb.c:29

Here is the call graph for this function:

Here is the caller graph for this function: