TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ to_bson() [3/3]

template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>>
static void nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::to_bson ( const basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType > &  j,
detail::output_adapter< std::uint8_t >  o 
)
inlinestatic

Serializes the given JSON object j to BSON and forwards the corresponding BSON-representation to the given output_adapter o.

Parameters
jThe JSON object to convert to BSON.
oThe output adapter that receives the binary BSON representation.
Precondition
The input j shall be an object: j.is_object() == true
See also
see to_bson(const basic_json&)

Definition at line 25332 of file json.hpp.

25333 {
25334 binary_writer<std::uint8_t>(o).write_bson(j);
25335 }