mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Add a simple /bin/sysctl that wraps the files in /proc/sys.
This commit is contained in:
@@ -40,12 +40,14 @@ void StringBuilder::appendf(const char* fmt, ...)
|
||||
ByteBuffer StringBuilder::to_byte_buffer()
|
||||
{
|
||||
m_buffer.trim(m_length);
|
||||
return m_buffer;
|
||||
return move(m_buffer);
|
||||
}
|
||||
|
||||
String StringBuilder::build()
|
||||
{
|
||||
return String((const char*)m_buffer.pointer(), m_length);
|
||||
auto string = String((const char*)m_buffer.pointer(), m_length);
|
||||
m_buffer.clear();
|
||||
return string;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user