PostGIS
2.5.7dev-r@@SVN_REVISION@@
◆
zigzag8()
uint8_t
zigzag8
(
int8_t
val
)
Definition at line
182
of file
varint.c
.
183
{
184
return
val >= 0 ?
185
((
uint8_t
)val) << 1 :
186
((((
uint8_t
)(-1 - val)) << 1) | 0x01);
187
}
uint8_t
unsigned char uint8_t
Definition:
uthash.h:79
Referenced by
lwgeom_write_to_buffer()
, and
test_zigzag()
.
Here is the caller graph for this function:
liblwgeom
varint.h
Generated by
1.9.1