TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ write_bson_string()

template<typename BasicJsonType , typename CharType >
void nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_string ( const string_t &  name,
const string_t &  value 
)
inlineprivate

Writes a BSON element with key name and string value value.

Definition at line 14843 of file json.hpp.

14845 {
14846 write_bson_entry_header(name, 0x02);
14847 write_number<std::int32_t, true>(static_cast<std::int32_t>(value.size() + 1ul));
14848 oa->write_characters(
14849 reinterpret_cast<const CharType *>(value.c_str()),
14850 value.size() + 1);
14851 }
void write_bson_entry_header(const string_t &name, const std::uint8_t element_type)
Writes the given element_type and name to the output adapter.
Definition: json.hpp:14803
output_adapter_t< CharType > oa
the output
Definition: json.hpp:15519
@ value
the parser finished reading a JSON value