| 121 | } |
| 122 | |
| 123 | static std::unique_ptr<List> array_from_binary(ByteReader& reader) { |
| 124 | auto array = std::make_unique<List>(); |
| 125 | while (reader.peek() != BJSON_END) { |
| 126 | array->put(value_from_binary(reader)); |
| 127 | } |
| 128 | reader.get(); |
| 129 | return array; |
| 130 | } |
| 131 | |
| 132 | static std::unique_ptr<Map> object_from_binary(ByteReader& reader) { |
| 133 | auto obj = std::make_unique<Map>(); |
no test coverage detected