String type implementation. More...
#include <BasicMonoStructures.hpp>
Public Member Functions | |
std::string | str () |
Convert Mono::String to std::string. | |
unsigned int | GetHash () const |
Calculate string hash. | |
bool | SelfCheck () const |
Check if string isn't null. | |
bool | IsNullOrEmpty () const |
Check if string is not null or not empty. | |
Static Public Member Functions | |
static String * | Empty () |
Get empty string. | |
Public Attributes | |
int | length {} |
IL2CPP::Il2CppChar | chars [0] |
String type implementation.
|
static |
Get empty string.
Gets C# empty string.
|
nodiscard |
Calculate string hash.
Calculates string's hash like it's done in il2cpp VM.
|
inline |
Check if string is not null or not empty.
|
nodiscard |
Check if string isn't null.
Checks if string isn't null and logs if it's null. It's used mostly internally in debug builds to crash proof code.
std::string BNM::Structures::Mono::String::str | ( | ) |
Convert Mono::String to std::string.
Converts C#'s UTF16 string to C++'s UTF8 string.