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.git
The following commit(s) were added to refs/heads/main by this push:
new 6f54e1992 docs: fix meta_size_mask (#2495)
6f54e1992 is described below
commit 6f54e1992daf5ef21e5ed3f478600ac7a248f297
Author: urlyy <[email protected]>
AuthorDate: Fri Aug 22 18:37:12 2025 +0800
docs: fix meta_size_mask (#2495)
## What does this PR do?
correct meta_size_mask in doc.
---
docs/specification/java_serialization_spec.md | 4 ++--
docs/specification/xlang_serialization_spec.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/specification/java_serialization_spec.md
b/docs/specification/java_serialization_spec.md
index 51fa30480..4efae2192 100644
--- a/docs/specification/java_serialization_spec.md
+++ b/docs/specification/java_serialization_spec.md
@@ -136,8 +136,8 @@ Class meta are encoded from parent class to leaf class,
only class with serializ
Meta header is a 64 bits number value encoded in little endian order.
-- lower 12 bits are used to encode meta size. If meta size `>=
0b111_1111_1111`, then write
- `meta_ size - 0b111_1111_1111` next.
+- lower 12 bits are used to encode meta size. If meta size `>=
0b1111_1111_1111`, then write
+ `meta_ size - 0b1111_1111_1111` next.
- 13rd bit is used to indicate whether to write fields meta. When this class
is schema-consistent or use registered
serializer, fields meta will be skipped. Class Meta will be used for share
namespace + type name only.
- 14rd bit is used to indicate whether meta is compressed.
diff --git a/docs/specification/xlang_serialization_spec.md
b/docs/specification/xlang_serialization_spec.md
index 2fcbab1db..ba0cc0067 100644
--- a/docs/specification/xlang_serialization_spec.md
+++ b/docs/specification/xlang_serialization_spec.md
@@ -319,8 +319,8 @@ subclass.
`50 bits hash + 1bit compress flag + write fields meta + 12 bits meta size`.
Right is the lower bits.
-- lower 12 bits are used to encode meta size. If meta size `>=
0b111_1111_1111`, then write
- `meta_ size - 0b111_1111_1111` next.
+- lower 12 bits are used to encode meta size. If meta size `>=
0b1111_1111_1111`, then write
+ `meta_ size - 0b1111_1111_1111` next.
- 13rd bit is used to indicate whether to write fields meta. When this class
is schema-consistent or use registered
serializer, fields meta will be skipped. Class Meta will be used for share
namespace + type name only.
- 14rd bit is used to indicate whether meta is compressed.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]