This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit 5c8f7b36047e919ec089a82dcd61cdce6bad069c Author: chaokunyang <[email protected]> AuthorDate: Tue Jun 9 08:10:35 2026 +0000 🔄 synced local 'docs/guide/' with remote 'docs/guide/' --- docs/guide/cpp/schema-metadata.md | 16 ++++++++-------- docs/guide/cpp/xlang-serialization.md | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/guide/cpp/schema-metadata.md b/docs/guide/cpp/schema-metadata.md index d7551fb7ac..9d1c55542b 100644 --- a/docs/guide/cpp/schema-metadata.md +++ b/docs/guide/cpp/schema-metadata.md @@ -112,14 +112,14 @@ FORY_STRUCT(Foo, (nested, fory::F().map(T::uint32().varint(), Supported recursive composition methods are: -| Method | Applies to | -| ------------------- | ------------------------------------- | -| `list(elem)` | `std::vector<T>` and list-like fields | -| `set(elem)` | `std::set<T>` and set-like fields | -| `map(key, value)` | `std::map<K, V>` and map-like fields | -| `map().key(spec)` | Override only the map key | -| `map().value(spec)` | Override only the map value | -| `inner(child)` | Transparent single-child carriers | +| Method | Applies to | +| ------------------- | ----------------------------------------------------------------- | +| `list(elem)` | `std::vector<T>` and list-like fields | +| `set(elem)` | `std::set<T>` and set-like fields | +| `map(key, value)` | `std::map<K, V>`, `std::unordered_map<K, V>`, and map-like fields | +| `map().key(spec)` | Override only the map key | +| `map().value(spec)` | Override only the map value | +| `inner(child)` | Transparent single-child carriers | Partial map overrides are useful when only one side needs a non-default encoding: diff --git a/docs/guide/cpp/xlang-serialization.md b/docs/guide/cpp/xlang-serialization.md index f6220235d7..fc943a7d4f 100644 --- a/docs/guide/cpp/xlang-serialization.md +++ b/docs/guide/cpp/xlang-serialization.md @@ -158,13 +158,13 @@ print(f"Timestamp: {msg.timestamp}") ### Collection Types -| C++ Type | Java Type | Python Type | Go Type | Rust Type | -| ------------------------------- | -------------- | --------------- | --------------------- | --------------- | -| `std::vector<T>` | `List<T>` | `list` | `[]T` | `Vec<T>` | -| `std::vector<fory::float16_t>` | `Float16List` | `Float16Array` | `[]float16.Float16` | `Vec<Float16>` | -| `std::vector<fory::bfloat16_t>` | `BFloat16List` | `BFloat16Array` | `[]bfloat16.BFloat16` | `Vec<BFloat16>` | -| `std::set<T>` | `Set<T>` | `set` | `map[T]struct{}` | `HashSet<T>` | -| `std::map<K,V>` | `Map<K,V>` | `dict` | `map[K]V` | `HashMap<K,V>` | +| C++ Type | Java Type | Python Type | Go Type | Rust Type | +| ------------------------------------------- | -------------- | --------------- | --------------------- | --------------- | +| `std::vector<T>` | `List<T>` | `list` | `[]T` | `Vec<T>` | +| `std::vector<fory::float16_t>` | `Float16List` | `Float16Array` | `[]float16.Float16` | `Vec<Float16>` | +| `std::vector<fory::bfloat16_t>` | `BFloat16List` | `BFloat16Array` | `[]bfloat16.BFloat16` | `Vec<BFloat16>` | +| `std::set<T>` | `Set<T>` | `set` | `map[T]struct{}` | `HashSet<T>` | +| `std::map<K,V>` / `std::unordered_map<K,V>` | `Map<K,V>` | `dict` | `map[K]V` | `HashMap<K,V>` | ### Lists and Dense Arrays --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
