File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
docs/mkdocs/docs/features/binary_formats Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ The library maps BSON record types to JSON value types as follows:
73
73
| Symbol | 0x0E | * unsupported* |
74
74
| JavaScript Code | 0x0F | * unsupported* |
75
75
| int32 | 0x10 | number_integer |
76
- | Timestamp | 0x11 | number_unsigned |
76
+ | uint64 | 0x11 | number_unsigned |
77
77
| 128-bit decimal float | 0x13 | * unsupported* |
78
78
| Max Key | 0x7F | * unsupported* |
79
79
| Min Key | 0xFF | * unsupported* |
@@ -94,3 +94,7 @@ The library maps BSON record types to JSON value types as follows:
94
94
```json
95
95
--8<-- "examples/from_bson.output"
96
96
```
97
+
98
+ !!! note "Handling of BSON type 0x11"
99
+ BSON type 0x11 is used to represent uint64 numbers. This library treats these values purely as uint64 numbers
100
+ and does not parse them into date-related formats.
Original file line number Diff line number Diff line change @@ -331,7 +331,6 @@ TEST_CASE("BSON")
331
331
332
332
SECTION (" non-empty object with unsigned integer (64-bit) member" )
333
333
{
334
- // directly encoding uint64 is not supported in bson (only for timestamp values)
335
334
json const j =
336
335
{
337
336
{ " entry" , std::uint64_t {0x1234567804030201 } }
@@ -531,7 +530,6 @@ TEST_CASE("BSON")
531
530
532
531
SECTION (" Some more complex document" )
533
532
{
534
- // directly encoding uint64 is not supported in bson (only for timestamp values)
535
533
json const j =
536
534
{
537
535
{" double" , 42.5 },
You can’t perform that action at this time.
0 commit comments