Skip to content

Commit 6f54e19

Browse files
authored
docs: fix meta_size_mask (#2495)
## What does this PR do? correct meta_size_mask in doc.
1 parent 2c912cd commit 6f54e19

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/specification/java_serialization_spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ Class meta are encoded from parent class to leaf class, only class with serializ
136136

137137
Meta header is a 64 bits number value encoded in little endian order.
138138

139-
- lower 12 bits are used to encode meta size. If meta size `>= 0b111_1111_1111`, then write
140-
`meta_ size - 0b111_1111_1111` next.
139+
- lower 12 bits are used to encode meta size. If meta size `>= 0b1111_1111_1111`, then write
140+
`meta_ size - 0b1111_1111_1111` next.
141141
- 13rd bit is used to indicate whether to write fields meta. When this class is schema-consistent or use registered
142142
serializer, fields meta will be skipped. Class Meta will be used for share namespace + type name only.
143143
- 14rd bit is used to indicate whether meta is compressed.

docs/specification/xlang_serialization_spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ subclass.
319319
320320
`50 bits hash + 1bit compress flag + write fields meta + 12 bits meta size`. Right is the lower bits.
321321
322-
- lower 12 bits are used to encode meta size. If meta size `>= 0b111_1111_1111`, then write
323-
`meta_ size - 0b111_1111_1111` next.
322+
- lower 12 bits are used to encode meta size. If meta size `>= 0b1111_1111_1111`, then write
323+
`meta_ size - 0b1111_1111_1111` next.
324324
- 13rd bit is used to indicate whether to write fields meta. When this class is schema-consistent or use registered
325325
serializer, fields meta will be skipped. Class Meta will be used for share namespace + type name only.
326326
- 14rd bit is used to indicate whether meta is compressed.

0 commit comments

Comments
 (0)