python-on-a-chip online compiler

Dependencies:   mbed TSI

Embed: (wiki syntax)

« Back to documentation index

PmString_s Struct Reference

PmString_s Struct Reference

String obj. More...

#include <strobj.h>

Data Fields

PmObjDesc_t od
 Object descriptor.
uint16_t length
 Length of string.
struct PmString_snext
 Ptr to next string in cache.
uint8_t val [1]
 Null-term char array.

Detailed Description

String obj.

Null terminated array of chars.

Definition at line 76 of file strobj.h.


Field Documentation

uint16_t length

Length of string.

Definition at line 82 of file strobj.h.

struct PmString_s* next

Ptr to next string in cache.

Definition at line 86 of file strobj.h.

Object descriptor.

Definition at line 79 of file strobj.h.

uint8_t val[1]

Null-term char array.

Use length 1 here so that string-alloc function can use "sizeof(PmString_t) + len" and there will be room for the null-term

Definition at line 95 of file strobj.h.