dev • api • name • gb_string


typedef struct { GB_TYPE type; struct { char *addr; int start; int len; } value; #if __WORDSIZE == 64 intptr_t _reserved; #endif } GB_STRING;

This structure represents a String Gambas value.

  • The string start address is at addr + start.

  • The length is len.

The string is not always terminated by a zero character.

You must use the STRING and LENGTH macro to access a method string argument.

If you need a null-terminated string, see the GB.ToZeroString function.

See also