Optionalproperties: Partial<{}>the NUL-terminated string representation of s.
Clears s and sets it to the empty string.
Frees s. This should only be called for heap-allocated Gst.IdStr.
Returns the length of s, exluding the NUL-terminator. This is equivalent to
calling strcmp() but potentially faster.
Initializes a (usually stack-allocated) id string s. The newly-initialized
id string will contain an empty string by default as value.
Compares s1 and s2 for equality.
A %GstIdStr
true if s1 and s2 are equal.
Compares s1 and s2 for equality.
A string
true if s1 and s2 are equal.
Compares s1 and s2 with length len for equality. s2 does not have to be
NUL-terminated and len should not include the NUL-terminator.
This is generally faster than gst_id_str_is_equal_to_str() if the length is
already known.
A string
Length of s2.
true if s1 and s2 are equal.
Sets s to the string value.
A NUL-terminated string
Sets s to the string value. value needs to be valid for the remaining
lifetime of the process, e.g. has to be a static string.
A NUL-terminated string
Sets s to the string value of length len. value needs to be valid for the
remaining lifetime of the process, e.g. has to be a static string.
value must be NUL-terminated and len should not include the
NUL-terminator.
A string
Length of the string
Sets s to the string value of length len. value does not have to be
NUL-terminated and len should not include the NUL-terminator.
A string
Length of the string
Staticnew
A Gst.IdStr is string type optimized for short strings and used for structure names, structure field names and in other places.
Strings up to 16 bytes (including NUL terminator) are stored inline, other strings are stored on the heap.
Since
1.26