Base class for DSL-generated variable QString(N) fields. QStringUtf8 supports UTF-8. N represents the total size of the string in bytes minus 2 bytes used for bookkeeping. In other words QString(64) will use 64 bytes for a string with a max byte length of 62 bytes, i.e. up to 32 UTF-8 characters. More...
Static Public Member Functions | |
static unsafe bool | AreEqual< T > (ref T qstr, object other) |
static bool | CanHold (string str, int maxByteCount) |
static int | CompareOrdinal< T > (ref T qstr, byte *bytes, ushort byteCount) |
static int | CompareOrdinal< T > (ref T qstr, string str) |
static int | CompareOrdinal< T, U > (ref T qstr1, ref U qstr2) |
static void | ConstructFrom< T > (string str, int maxByteCount, out T qstr) |
static void | ConstructNoByteCountCheck< T > (string str, int characterCount, int maxByteCount, out T qstr) |
static int | GetFittingCharacterCount (string str, int maxByteCount) |
static int | GetFittingCharacterCount (string str, int maxByteCount, out int actualByteCount) |
static int | GetLength< T > (ref T qstr) |
static string | GetString< T > (ref T qstr) |
static void | Print (void *ptr, FramePrinter printer) |
Static Public Attributes | |
const string | ByteCountFieldName = nameof(QStringCommonLayout.byteCount) |
const string | BytesFieldName = nameof(QStringCommonLayout.bytes) |
Base class for DSL-generated variable QString(N) fields. QStringUtf8 supports UTF-8. N represents the total size of the string in bytes minus 2 bytes used for bookkeeping. In other words QString(64) will use 64 bytes for a string with a max byte length of 62 bytes, i.e. up to 32 UTF-8 characters.