mirror of
https://github.com/nlohmann/json.git
synced 2026-10-07 23:17:14 +00:00
BSON: support objects with int64 members
This commit is contained in:
1 parent
7ee361f7ad
commit
c0d8921a67
4 files changed
+83
-12
No files matched your search
@@ -213,6 +213,16 @@ class binary_reader
|
||||
sax->number_integer(static_cast<std::int32_t>(value));
|
||||
}
|
||||
break;
|
||||
case 0x12: // int64
|
||||
{
|
||||
string_t key;
|
||||
get_bson_cstr(key);
|
||||
sax->key(key);
|
||||
std::int64_t value;
|
||||
get_number_little_endian(value);
|
||||
sax->number_integer(static_cast<std::int64_t>(value));
|
||||
}
|
||||
break;
|
||||
case 0x0A: // null
|
||||
{
|
||||
string_t key;
|
||||
|
||||
Reference in new issue
Block a user