PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ set_int_value()

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

Definition at line 86 of file geobuf.c.

86  {
87  if (intval >= 0) {
88  value->value_type_case = DATA__VALUE__VALUE_TYPE_POS_INT_VALUE;
89  value->pos_int_value = (uint64_t) intval;
90  } else {
91  value->value_type_case = DATA__VALUE__VALUE_TYPE_NEG_INT_VALUE;
92  value->neg_int_value = (uint64_t)llabs(intval);
93  }
94 }
int value
Definition: genraster.py:62

References genraster::value.

Referenced by encode_properties().

Here is the caller graph for this function: