mg_string

An UTF-8 encoded string.

Note that the length of the string is the byte count of the UTF-8 encoded data. It is guaranteed that the bytes of the string are stored contiguously, and they can be accessed through a pointer to first element returned by mg_string_data.

Note that the library doesn't perform any checks whatsoever to see if the provided data is a valid UTF-8 encoded string when constructing instances of mg_string.

Maximum possible string length allowed by Bolt protocol is uint.max.

  1. struct mg_string
    version(unittest)
    extern (C)
    struct mg_string {}
  2. struct mg_string

Members

Variables

data
char* data;
Undocumented in source.
size
uint size;
Undocumented in source.

Meta