This commit is contained in:
nlohmann
2026-09-05 19:29:47 +00:00
parent c72a9fa06d
commit d9175ae42a
258 changed files with 259 additions and 257 deletions
File diff suppressed because one or more lines are too long
+1
View File
@@ -97,6 +97,7 @@ Likewise, when a JSON object in the above form is serialized using [`to_bjdata`]
An object is only converted if the annotation actually describes a packed array; otherwise it is serialized as a regular JSON object. This requires all of the following:
- `"_ArrayType_"` is one of `uint8`, `int8`, `uint16`, `int16`, `uint32`, `int32`, `uint64`, `int64`, `single`, `double`, `char`, or `byte`,
- `"_ArraySize_"` is an array, since the dimensions are written as the ND-array header's length,
- every entry of `"_ArraySize_"` is a non-negative integer, and their product is representable as a `std::size_t`,
- `"_ArrayData_"` holds exactly that many elements, and
- every element of `"_ArrayData_"` is a number of the kind named by `"_ArrayType_"` (a floating-point number for `single` and `double`, an integer otherwise).