Start proper stream support.
This commit is contained in:
parent
5183aa821a
commit
e3e03dc31f
34 changed files with 421 additions and 402 deletions
|
@ -146,6 +146,17 @@ void String::to_bytes(Vector<Byte>& bytes) const
|
|||
}
|
||||
}
|
||||
|
||||
size_t String::length(const char* arr)
|
||||
{
|
||||
size_t len{0};
|
||||
while(*arr != '\0')
|
||||
{
|
||||
arr++;
|
||||
len++;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
void String::append(const Vector<Byte>& data)
|
||||
{
|
||||
if (data.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue