mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 14:27:35 +08:00
Faster CharArrayFormatter
This commit is contained in:
@@ -38,7 +38,8 @@ class CharArrayFormatter
|
||||
{
|
||||
if (std::is_same<T, char>())
|
||||
{
|
||||
array_.template appendFormatted("%c", value); // TODO: speedup
|
||||
if (array_.size() != array_.capacity())
|
||||
array_.push_back(value);
|
||||
}
|
||||
else if (std::is_signed<T>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user