14876 {
14877 if ((std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)())
14878 {
14880 write_number<std::int32_t, true>(static_cast<std::int32_t>(value));
14881 }
14882
14883 else
14884 {
14886 write_number<std::int64_t, true>(static_cast<std::int64_t>(value));
14887 }
14888 }
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.