MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / as_wkt

Method as_wkt

sql/spatial.h:521–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519 return construct(buffer, str->ptr(), str->length());
520 }
521 bool as_wkt(String *wkt, wkb_parser *wkb)
522 {
523 uint32 len= (uint) get_class_info()->m_name.length;
524 if (wkt->reserve(len + 2, 512))
525 return true;
526 wkt->qs_append(get_class_info()->m_name.str, len);
527 wkt->qs_append('(');
528 if (get_data_as_wkt(wkt, wkb))
529 return true;
530 wkt->qs_append(')');
531 return false;
532 }
533 bool as_wkt(String *wkt)
534 {
535 wkb_parser wkb(&m_wkb_data);

Callers

nothing calls this directly

Calls 2

reserveMethod · 0.45
qs_appendMethod · 0.45

Tested by

no test coverage detected