mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
base: document the return value of String::length
This commit is contained in:
committed by
Christian Helmuth
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; }
|
||||
|
||||
Reference in New Issue
Block a user