Inlined the content of JsonWriter.cpp

This commit is contained in:
Benoit Blanchon
2014-11-07 13:23:11 +01:00
parent 93397880ca
commit 35a95f00d9
2 changed files with 14 additions and 30 deletions

View File

@ -1,25 +0,0 @@
// Copyright Benoit Blanchon 2014
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#include "../../include/ArduinoJson/Internals/JsonWriter.hpp"
#include "../../include/ArduinoJson/Internals/QuotedString.hpp"
using namespace ArduinoJson::Internals;
void JsonWriter::writeString(char const *value) {
_length += QuotedString::printTo(value, _sink);
}
void JsonWriter::writeInteger(long value) { _length += _sink.print(value); }
void JsonWriter::writeBoolean(bool value) {
_length += _sink.print(value ? "true" : "false");
}
void JsonWriter::writeDouble(double value, uint8_t decimals) {
_length += _sink.print(value, decimals);
}