feat: Various improvements

This commit is contained in:
Daniel Hammer
2025-04-16 10:32:11 +02:00
parent 35cf3f7c80
commit fcd81be1c5
14 changed files with 135 additions and 98 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ namespace kcp {
vector<const char*> result;
cstringstream current_stream = cstringstream();
do {
while (true) {
if (*str == delimiter || *str == '\0') {
auto cstr = current_stream.c_str();
auto cstr_len = Lib::strlen(cstr);
@@ -35,7 +35,7 @@ namespace kcp {
current_stream << (char)*str;
str++;
} while (*str != '\0');
};
return result;
}
+1 -1
View File
@@ -25,7 +25,7 @@ kcp::cstringstream& kcp::cstringstream::operator<<(char c) {
if (this->string == nullptr)
{
kerr << "kcp::cstringstream: Streaming failed due to failed allocation" << Kt::newline;
Kt::KernelLogStream(Kt::ERROR, "kcp::cstringstream") << "Character streaming failed due to failed allocation.";
return *this;
}