feat: Various improvements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user