This commit is contained in:
Gustav 2020-05-18 14:06:39 +02:00
parent 8f4c021fa2
commit ac0fc79c76

View File

@ -283,6 +283,8 @@ public:
os_->Flush(); os_->Flush();
} }
static const size_t kDefaultLevelDepth = 32;
protected: protected:
//! Information for each nested level //! Information for each nested level
struct Level { struct Level {
@ -291,8 +293,6 @@ protected:
bool inArray; //!< true if in array, otherwise in object bool inArray; //!< true if in array, otherwise in object
}; };
static const size_t kDefaultLevelDepth = 32;
bool WriteNull() { bool WriteNull() {
PutReserve(*os_, 4); PutReserve(*os_, 4);
PutUnsafe(*os_, 'n'); PutUnsafe(*os_, 'u'); PutUnsafe(*os_, 'l'); PutUnsafe(*os_, 'l'); return true; PutUnsafe(*os_, 'n'); PutUnsafe(*os_, 'u'); PutUnsafe(*os_, 'l'); PutUnsafe(*os_, 'l'); return true;