PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ set_int_value()

static void set_int_value ( Data__Value *  value,
int64  intval 
)
static

Definition at line 91 of file geobuf.c.

91  {
92  if (intval >= 0) {
93  value->value_type_case = DATA__VALUE__VALUE_TYPE_POS_INT_VALUE;
94  value->pos_int_value = (uint64_t) intval;
95  } else {
96  value->value_type_case = DATA__VALUE__VALUE_TYPE_NEG_INT_VALUE;
97  value->neg_int_value = (uint64_t) labs(intval);
98  }
99 }
int value
Definition: genraster.py:61

References genraster::value.

Referenced by encode_properties().

Here is the caller graph for this function: