BSON: support objects with int32 members
This commit is contained in:
parent
c5ef023171
commit
7ee361f7ad
4 changed files with 72 additions and 0 deletions
|
@ -203,6 +203,16 @@ class binary_reader
|
|||
sax->boolean(static_cast<bool>(get()));
|
||||
}
|
||||
break;
|
||||
case 0x10: // int32
|
||||
{
|
||||
string_t key;
|
||||
get_bson_cstr(key);
|
||||
sax->key(key);
|
||||
std::int32_t value;
|
||||
get_number_little_endian(value);
|
||||
sax->number_integer(static_cast<std::int32_t>(value));
|
||||
}
|
||||
break;
|
||||
case 0x0A: // null
|
||||
{
|
||||
string_t key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue