MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / GetCstring

Function GetCstring

native/thirdpart/flatbuffers/flatbuffers.h:653–655  ·  view source on GitHub ↗

Convenience function to get char* from a String returning an empty string on null pointer.

Source from the content-addressed store, hash-verified

651// Convenience function to get char* from a String returning an empty string on
652// null pointer.
653static inline const char *GetCstring(const String *str) {
654 return str ? str->c_str() : "";
655}
656
657#ifdef FLATBUFFERS_HAS_STRING_VIEW
658// Convenience function to get string_view from a String returning an empty

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected