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

Method get_data_as_json

sql/spatial.cc:1179–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177
1178
1179bool Gis_point::get_data_as_json(String *txt, uint max_dec_digits,
1180 const char **end) const
1181{
1182 if (txt->reserve(MAX_DIGITS_IN_DOUBLE * 2 + 4))
1183 return 1;
1184 append_json_point(txt, max_dec_digits, m_data);
1185 *end= m_data+ POINT_DATA_SIZE;
1186 return 0;
1187}
1188
1189
1190bool Gis_point::get_mbr(MBR *mbr, const char **end) const

Callers

nothing calls this directly

Calls 10

append_json_pointFunction · 0.85
uint4korrFunction · 0.85
append_json_pointsFunction · 0.85
set_data_ptrMethod · 0.80
as_jsonMethod · 0.80
reserveMethod · 0.45
qs_appendMethod · 0.45
lengthMethod · 0.45
q_appendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected