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 64076d2768120e87a61603e84f41fb4330d23166 Author: chaokunyang <[email protected]> AuthorDate: Tue Feb 3 22:57:33 2026 +0000 🔄 synced local 'docs/specification/' with remote 'docs/specification/' --- docs/specification/java_serialization_spec.md | 3 +-- docs/specification/xlang_serialization_spec.md | 23 +++-------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/docs/specification/java_serialization_spec.md b/docs/specification/java_serialization_spec.md index e3093f2b9d..5e72d4226d 100644 --- a/docs/specification/java_serialization_spec.md +++ b/docs/specification/java_serialization_spec.md @@ -53,8 +53,7 @@ bitmap and uses the same flag bits. - xlang flag: 1 when serialization uses xlang format, 0 when serialization uses Java native format. - oob flag: 1 when `BufferCallback` is not null, 0 otherwise. -If xlang flag is set, a one byte language ID is written after the bitmap. In Java native mode (xlang -flag unset), no language byte is written. +The header is always a single byte; no language ID is written. ## Reference meta diff --git a/docs/specification/xlang_serialization_spec.md b/docs/specification/xlang_serialization_spec.md index 1256ccb08b..670bfe1119 100644 --- a/docs/specification/xlang_serialization_spec.md +++ b/docs/specification/xlang_serialization_spec.md @@ -257,9 +257,9 @@ The data are serialized using little endian byte order for all types. Fory header format for xlang serialization: ``` -| 1 byte bitmap | 1 byte | -+--------------------------------+------------+ -| flags | language | +| 1 byte bitmap | ++--------------------------------+ +| flags | ``` Detailed byte layout: @@ -270,7 +270,6 @@ Byte 0: Bitmap flags - Bit 1: xlang flag (0x02) - Bit 2: oob flag (0x04) - Bits 3-7: reserved -Byte 1: Language ID (only present when xlang flag is set) ``` - **null flag** (bit 0): 1 when object is null, 0 otherwise. If an object is null, only this flag is set. @@ -279,21 +278,6 @@ Byte 1: Language ID (only present when xlang flag is set) All data is encoded in little-endian format. -- **language**: 1 byte indicating the source language. This allows deserializers to optimize for specific language characteristics. - -### Language IDs - -| Language | ID | -| ---------- | --- | -| XLANG | 0 | -| JAVA | 1 | -| PYTHON | 2 | -| CPP | 3 | -| GO | 4 | -| JAVASCRIPT | 5 | -| RUST | 6 | -| DART | 7 | - ## Reference Meta Reference tracking handles whether the object is null, and whether to track reference for the object by writing @@ -1532,7 +1516,6 @@ This section provides a step-by-step guide for implementing Fory xlang serializa 3. **Header Handling** - [ ] Write/read bitmap flags (null, xlang, oob) - - [ ] Write/read language ID (when xlang flag is set) ### Phase 2: Basic Type Serializers --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
