30 #ifndef LEGATO_FIXEDSTRING_H 31 #define LEGATO_FIXEDSTRING_H 38 #define LE_FIXEDSTRING_VTABLE(THIS_TYPE) \ 39 LE_STRING_VTABLE(THIS_TYPE) \ 41 leResult (*setBuffer)(THIS_TYPE* str, leChar* buf, uint32_t size); \ 43 typedef struct leFixedStringVTable
46 } leFixedStringVTable;
59 const leFixedStringVTable*
fn;
104 #define THIS_TYPE struct leWidget void leFixedString_Constructor(leFixedString *str, leChar *buf, uint32_t size)
Consructs a fixed string.
Definition: legato_fixedstring.c:42
leChar * data
Definition: legato_fixedstring.h:60
const leFont * font
Definition: legato_fixedstring.h:63
const leFixedStringVTable * fn
Definition: legato_fixedstring.h:59
This struct represents a string.
Definition: legato_string.h:107
This struct represents a font object.
Definition: legato_font.h:156
leResult
This enum represents function call results.
Definition: legato_common.h:123
uint16_t capacity
Definition: legato_fixedstring.h:61
uint16_t length
Definition: legato_fixedstring.h:62
leFixedString * leFixedString_New(leChar *buf, uint32_t size)
Create a new fixed string.
Definition: legato_fixedstring.c:60
virtual leResult setBuffer(leFixedString *_this, leChar *buf, uint32_t size)
Set capacity of the dynamic string.
struct leFixedString leFixedString
This struct represents a fixed string.
This struct represents a fixed string.
Definition: legato_fixedstring.h:56
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:414
leString base
Definition: legato_fixedstring.h:58
Fixed string functions and definitions.