MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / parse_bson_array

Method parse_bson_array

external/json/json.hpp:6657–6673  ·  view source on GitHub ↗

! @brief Reads an array from the BSON input and passes it to the SAX-parser. @return whether a valid BSON-array was passed to the SAX parser */

Source from the content-addressed store, hash-verified

6655 @return whether a valid BSON-array was passed to the SAX parser
6656 */
6657 bool parse_bson_array()
6658 {
6659 std::int32_t document_size;
6660 get_number<std::int32_t, true>(input_format_t::bson, document_size);
6661
6662 if (JSON_UNLIKELY(not sax->start_array(std::size_t(-1))))
6663 {
6664 return false;
6665 }
6666
6667 if (JSON_UNLIKELY(not parse_bson_element_list(/*is_array*/true)))
6668 {
6669 return false;
6670 }
6671
6672 return sax->end_array();
6673 }
6674
6675 //////////
6676 // CBOR //

Callers

nothing calls this directly

Calls 2

start_arrayMethod · 0.45
end_arrayMethod · 0.45

Tested by

no test coverage detected