Definition at line 1370 of file g_serialized.c.
1372 uint8_t *start_ptr = data_ptr;
1380 triangle->
bbox = NULL;
1382 triangle->
flags = g_flags;
1393 data_ptr +=
FLAGS_NDIMS(g_flags) * npoints *
sizeof(double);
1396 *
g_size = data_ptr - start_ptr;
static uint32_t gserialized_get_uint32_t(const uint8_t *loc)
POINTARRAY * ptarray_construct_reference_data(char hasz, char hasm, uint32_t npoints, uint8_t *ptlist)
Construct a new POINTARRAY, referencing to the data from ptlist.
POINTARRAY * ptarray_construct(char hasz, char hasm, uint32_t npoints)
Construct an empty pointarray, allocating storage and setting the npoints, but not filling in any inf...
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define FLAGS_NDIMS(flags)
#define FLAGS_GET_M(flags)
void * lwalloc(size_t size)
#define SRID_UNKNOWN
Unknown SRID value.
References LWTRIANGLE::bbox, LWTRIANGLE::flags, FLAGS_GET_M, FLAGS_GET_Z, FLAGS_NDIMS, genraster::g_size, gserialized_get_uint32_t(), lwalloc(), LWTRIANGLE::points, ptarray_construct(), ptarray_construct_reference_data(), LWTRIANGLE::srid, SRID_UNKNOWN, TRIANGLETYPE, and LWTRIANGLE::type.
Referenced by lwgeom_from_gserialized_buffer().