void createNativeStructures(out Span <float> p, out Span <sPathSegment> s, out Span <sPathFigure> f, out sPathData pd) { p = data.AsSpan(); s = segments.AsSpan(); f = figures.AsSpan(); pd = new sPathData(); pd.fillMode = fillMode; pd.figuresCount = f.Length; }
void createNativeStructures(out Span <float> p, out sPathSegment s, out sPathFigure f, out sPathData pd) { p = data.AsSpan(); s = new sPathSegment(); s.kind = segmentKind; s.pointsCount = pointsCount; s.flags = arcFlags; f = new sPathFigure(); f.startingPoint = startingPoint; f.segmentsCount = 1; f.isFilled = isFilled; f.isClosed = isClosed; pd = new sPathData(); pd.fillMode = fillMode; pd.figuresCount = 1; }