873{
874 uint8_t *loc;
875 int ptsize;
876 size_t size;
878
879 assert(triangle);
880 assert(buf);
881
882 LWDEBUGF(2,
"%s (%p, %p) called", __func__, triangle, buf);
883
885 lwerror(
"Dimensions mismatch in lwtriangle");
886
888
889 loc = buf;
890
891
892 memcpy(loc, &type, sizeof(uint32_t));
893 loc += sizeof(uint32_t);
894
895
897 loc += sizeof(uint32_t);
898
900
901
903 {
906 loc += size;
907 }
908 LWDEBUGF(3,
"%s copied serialized_pointlist (%d bytes)", __func__, ptsize * triangle->
points->
npoints);
909
910 return (size_t)(loc - buf);
911}
#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)