963{
964 uint8_t *loc;
965 int ptsize;
966 size_t size;
968
969 assert(triangle);
970 assert(buf);
971
972 LWDEBUGF(2,
"%s (%p, %p) called", __func__, triangle, buf);
973
975 lwerror(
"Dimensions mismatch in lwtriangle");
976
978
979 loc = buf;
980
981
982 memcpy(loc, &type, sizeof(uint32_t));
983 loc += sizeof(uint32_t);
984
985
987 loc += sizeof(uint32_t);
988
990
991
993 {
996 loc += size;
997 }
998 LWDEBUGF(3,
"%s copied serialized_pointlist (%d bytes)", __func__, ptsize * triangle->
points->
npoints);
999
1000 return (size_t)(loc - buf);
1001}
#define FLAGS_GET_ZM(flags)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
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)