base: document the return value of String::length
This commit is contained in:
parent
fd401bdf53
commit
ab88599682
|
@ -524,6 +524,9 @@ class Genode::String
|
||||||
strncpy(_buf, str, _length);
|
strncpy(_buf, str, _length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return length of string, including the terminating null character
|
||||||
|
*/
|
||||||
size_t length() const { return _length; }
|
size_t length() const { return _length; }
|
||||||
|
|
||||||
static constexpr size_t capacity() { return CAPACITY; }
|
static constexpr size_t capacity() { return CAPACITY; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user