| 47 | } |
| 48 | |
| 49 | void SimpleStringBuffer::add(const char* format, ...) |
| 50 | { |
| 51 | const size_t positions_left = write_limit_ - positions_filled_; |
| 52 | if (positions_left == 0) return; |
| 53 | |
| 54 | va_list arguments; |
| 55 | va_start(arguments, format); |
| 56 | const int count = PlatformSpecificVSNprintf(buffer_ + positions_filled_, positions_left+1, format, arguments); |
| 57 | if (count > 0) positions_filled_ += (size_t) count; |
| 58 | if (positions_filled_ > write_limit_) positions_filled_ = write_limit_; |
| 59 | va_end(arguments); |
| 60 | } |
| 61 | |
| 62 | void SimpleStringBuffer::addMemoryDump(const void* memory, size_t memorySize) |
| 63 | { |
no test coverage detected