base: document the return value of String::length

This commit is contained in:
Norman Feske
2016-05-09 12:36:15 +02:00
committed by Christian Helmuth
parent fd401bdf53
commit ab88599682

View File

@@ -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; }