stringbuf::data is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

stringbuf::data field

Allocated memory containing the string or NULL for empty

Syntax

char *data;

References

LocationReferrerText
linenoise.c:31
char *data; /**< Allocated memory containing the string or NULL for empty */
linenoise.c:97sb_str()
return sb->data;
linenoise.c:157sb_alloc()
sb->data = NULL;
linenoise.c:165sb_free()
free(sb->data);
linenoise.c:172sb_realloc()
sb->data = (char *)realloc(sb->data, newlen);
linenoise.c:186sb_append_len()
memcpy(sb->data + sb->last, str, len);
linenoise.c:187sb_append_len()
sb->data[sb->last + len] = 0;
linenoise.c:198sb_to_string()
if (sb->data == NULL) {
linenoise.c:204sb_to_string()
char *pt = sb->data;
linenoise.c:226sb_insert_space()
memmove(sb->data + pos + len, sb->data + pos, sb->last - pos);
linenoise.c:230sb_insert_space()
sb->data[sb->last] = 0;
linenoise.c:247sb_delete_space()
memmove(sb->data + pos, sb->data + pos + len, sb->last - pos - len);
linenoise.c:251sb_delete_space()
sb->data[sb->last] = 0;
linenoise.c:264sb_insert()
memcpy(sb->data + index, str, len);
linenoise.c:278sb_delete()
char *pos = sb->data + index;
linenoise.c:283sb_delete()
sb_delete_space(sb, pos - sb->data, len);
linenoise.c:289sb_clear()
if (sb->data) {
linenoise.c:291sb_clear()
sb->data[0] = 0;

Data Use

Functions writing stringbuf::data
Functions reading stringbuf::data
all items filtered out
stringbuf::data