MCPcopy Create free account
hub / github.com/MariaDB/server / end_point

Method end_point

sql/spatial.cc:1715–1724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1713
1714
1715int Gis_line_string::end_point(String *result) const
1716{
1717 uint32 n_points;
1718 if (no_data(m_data, 4))
1719 return 1;
1720 n_points= uint4korr(m_data);
1721 if (n_points == 0 || not_enough_points(m_data+4, n_points))
1722 return 1;
1723 return create_point(result, m_data + 4 + (n_points - 1) * POINT_DATA_SIZE);
1724}
1725
1726
1727int Gis_line_string::point_n(uint32 num, String *result) const

Callers 1

val_strMethod · 0.45

Calls 2

uint4korrFunction · 0.85
create_pointFunction · 0.70

Tested by

no test coverage detected