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