urlyy opened a new pull request, #2563:
URL: https://github.com/apache/fory/pull/2563
## Why?
Fory needs to support the following conversions:
- value -> value
- value -> Option(value)
- Option(value) -> value
- Option(value) -> Option(value)
- Option(None) -> Option(None)
- Option(None) -> value_default
## What does this PR do?
- Support automatic conversion between `T` and `Option<T>`.
- Add NullableFieldType to represent `T{nullable}`, while the original
FieldType exactly matches the data structure of a struct, such as `Option{T}`.
- Add `read_var_uint32()` && `write_var_uint32()`.
- Changed the type of `type_id` from `i16` to `u32`, and updated the
read/write operations from `i16()` to `var_uint32()`
- When registering a struct, add the `types::STRUCT` to its id.
- Removed the sending of `meta_index`.
## Related issues
#2529
## Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]