mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-10 22:44:30 +00:00
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return length of string, including the terminating null character
|
||||
*/
|
||||
size_t length() const { return _length; }
|
||||
|
||||
static constexpr size_t capacity() { return CAPACITY; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user