PostGIS
2.4.9dev-r@@SVN_REVISION@@
◆
varint_size()
size_t varint_size
(
const
uint8_t
*
the_start
,
const
uint8_t
*
the_end
)
Definition at line
147
of file
varint.c
.
Referenced by
twkb_parse_state_varint_skip()
.
148
{
149
const
uint8_t
*ptr = the_start;
150
151
/* Check so we don't read beyond the twkb */
152
while
( ptr < the_end )
153
{
154
/* Hibit is set, this isn't the last byte */
155
if
(*ptr & 0x80)
156
{
157
ptr++;
158
}
159
else
160
{
161
ptr++;
162
return
ptr - the_start;
163
}
164
}
165
return
0;
166
}
uint8_t
unsigned char uint8_t
Definition:
uthash.h:79
Here is the caller graph for this function:
liblwgeom
varint.h
Generated by
1.8.13