PostGIS  2.1.10dev-r@@SVN_REVISION@@
static uint8_t* endian_to_wkb_buf ( uint8_t *  buf,
uint8_t  variant 
)
static

Definition at line 148 of file lwout_wkb.c.

References WKB_HEX, and WKB_NDR.

Referenced by empty_to_wkb_buf(), lwcollection_to_wkb_buf(), lwline_to_wkb_buf(), lwpoint_to_wkb_buf(), lwpoly_to_wkb_buf(), and lwtriangle_to_wkb_buf().

149 {
150  if ( variant & WKB_HEX )
151  {
152  buf[0] = '0';
153  buf[1] = ((variant & WKB_NDR) ? '1' : '0');
154  return buf + 2;
155  }
156  else
157  {
158  buf[0] = ((variant & WKB_NDR) ? 1 : 0);
159  return buf + 1;
160  }
161 }
#define WKB_NDR
Definition: liblwgeom.h:1770
#define WKB_HEX
Definition: liblwgeom.h:1772

Here is the caller graph for this function: