D-Bus 1.16.0
Data Fields
DBusRealString Struct Reference

Internals of DBusString. More...

#include <dbus-string-private.h>

Data Fields

unsigned char * str
 String data, plus nul termination.
 
int len
 Length without nul.
 
int allocated
 Allocated size of data.
 
unsigned int constant: 1
 String data is not owned by DBusString.
 
unsigned int locked: 1
 DBusString has been locked and can't be changed.
 
unsigned int valid: 1
 DBusString is valid (initialized and not freed)
 
unsigned int align_offset: 3
 str - align_offset is the actual malloc block
 

Detailed Description

Internals of DBusString.

DBusString internals. DBusString is an opaque objects, it must be used via accessor functions.

Definition at line 45 of file dbus-string-private.h.

Field Documentation

◆ align_offset

unsigned int DBusRealString::align_offset

str - align_offset is the actual malloc block

Definition at line 53 of file dbus-string-private.h.

Referenced by _dbus_string_free(), _dbus_string_init_const_len(), _dbus_string_init_preallocated(), and _dbus_string_zero().

◆ allocated

int DBusRealString::allocated

◆ constant

unsigned int DBusRealString::constant

String data is not owned by DBusString.

Definition at line 50 of file dbus-string-private.h.

Referenced by _dbus_string_free(), _dbus_string_init_const_len(), and _dbus_string_init_preallocated().

◆ len

int DBusRealString::len

◆ locked

unsigned int DBusRealString::locked

DBusString has been locked and can't be changed.

Definition at line 51 of file dbus-string-private.h.

Referenced by _dbus_string_free(), _dbus_string_init_const_len(), and _dbus_string_init_preallocated().

◆ str

unsigned char* DBusRealString::str

◆ valid

unsigned int DBusRealString::valid

DBusString is valid (initialized and not freed)

Definition at line 52 of file dbus-string-private.h.

Referenced by _dbus_string_free(), _dbus_string_init_const_len(), and _dbus_string_init_preallocated().


The documentation for this struct was generated from the following file: