| 34 | |
| 35 | template <fl::size DescriptorCount, fl::size ArenaSize> |
| 36 | bool AsyncLogQueue<DescriptorCount, ArenaSize>::push(const fl::string& msg) { |
| 37 | fl::size len = msg.length(); |
| 38 | if (len > MAX_MESSAGE_LENGTH) { |
| 39 | len = MAX_MESSAGE_LENGTH; |
| 40 | } |
| 41 | return push(msg.c_str(), static_cast<fl::u16>(len)); |
| 42 | } |
| 43 | |
| 44 | template <fl::size DescriptorCount, fl::size ArenaSize> |
| 45 | bool AsyncLogQueue<DescriptorCount, ArenaSize>::push(const char* str) { |