We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d00df7 commit 06e87c9Copy full SHA for 06e87c9
lightning/src/util/ser.rs
@@ -389,7 +389,8 @@ impl Readable for BigSize {
389
/// length integer here which is backwards-compatible but treats 0xffff as "read eight more bytes".
390
///
391
/// To ensure we only have one valid encoding per value, we add 0xffff to values written as eight
392
-/// bytes, representing 0xffff as zero-eight-bytes, which 0xfffe is 0xfffe-two-bytes.
+/// bytes. Thus, 0xfffe is serialized as 0xfffe, whereas 0xffff is serialized as
393
+/// 0xffff0000000000000000 (i.e. read-eight-bytes then zero).
394
struct U16OrU64(pub u64);
395
impl Writeable for U16OrU64 {
396
#[inline]
0 commit comments