mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
being more precise
This commit is contained in:
@@ -770,6 +770,9 @@ void basics_treewalk_1() {
|
||||
}
|
||||
```
|
||||
|
||||
Notice that we do not include `dom::element_type::BIGINT` in this example
|
||||
as `dom::element_type::BIGINT` type is only generated if the parser was
|
||||
set to support big integers (`parser.number_as_string(true)`).
|
||||
|
||||
|
||||
Reusing the parser for maximum efficiency
|
||||
|
||||
@@ -22,6 +22,8 @@ enum class element_type {
|
||||
STRING = '"', ///< std::string_view
|
||||
BOOL = 't', ///< bool
|
||||
NULL_VALUE = 'n', ///< null
|
||||
/// The BIGINT type is for integers that do not fit in 64 bits. It is only present
|
||||
// if you set parser.number_as_string(true).
|
||||
BIGINT = 'Z' ///< std::string_view: big integer stored as raw digit string
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user