933{
934 uint8_t *loc;
935 int ptsize;
936 size_t size;
938
939 assert(triangle);
940 assert(buf);
941
942 LWDEBUGF(2,
"%s (%p, %p) called", __func__, triangle, buf);
943
945 lwerror(
"Dimensions mismatch in lwtriangle");
946
948
949 loc = buf;
950
951
952 memcpy(loc, &type, sizeof(uint32_t));
953 loc += sizeof(uint32_t);
954
955
957 loc += sizeof(uint32_t);
958
960
961
963 {
966 loc += size;
967 }
968 LWDEBUGF(3,
"%s copied serialized_pointlist (%d bytes)", __func__, ptsize * triangle->
points->
npoints);
969
970 return (size_t)(loc - buf);
971}
#define FLAGS_GET_ZM(flags)
#define LWDEBUGF(level, msg,...)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
static size_t ptarray_point_size(const POINTARRAY *pa)