struct zx_string_view
Defined at line 26 of file ../../zircon/system/public/zircon/string_view.h
This represents a UTF-8 string constant provided by the vDSO itself.
This pointer remains valid and the string doesn't change for the
life of the process (if not the system).
This type exists to be the return value type for vDSO functions.
In current machine ABIs, it's returned "for free" in two registers.
To a C caller, these functions have ABIs indistinguishable from if
they simply returned `const char*` so there is no overhead to
supporting the explicit-length API as well as the traditional C
string API, though it does require writing out `.c_str` in the
source. C++ 17 callers can take advantage of direct coercion to
the standard std::string_view and std::u8string_view types, which
also allows e.g. direct construction of std::string.
Public Members
const char * c_str
size_t length
Public Methods
template <typename _T, typename = typename std::enable_if<sizeof(typename _T::value_type) == sizeof(char)>::type>
_T operator _T ()
Defined at line 45 of file ../../zircon/system/public/zircon/string_view.h
const_pointer data ()
Defined at line 65 of file ../../zircon/system/public/zircon/string_view.h
size_type size ()
Defined at line 66 of file ../../zircon/system/public/zircon/string_view.h