Function to_string

Function Documentation

static inline string to_string(const byte *c)

Wrap C-string to internal string slice. Length does not count the NUL-terminator.

Return

UTF-8 string slice.

Parameters
  • [in] c: NUL-terminated C-string to be wrapped