Skip to content

Commit

Permalink
Clarify endianess of integers in xUDT
Browse files Browse the repository at this point in the history
  • Loading branch information
XuJiandong committed May 20, 2024
1 parent 24b7a6f commit abeb01b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rfcs/0052-extensible-udt/0052-extensible-udt.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ type:
lock:
<user_defined>
```
The added `xUDT args` and `xUDT data` parts provide all the new functions needed
by xUDT, the detailed structure is explained below.
The `amount` is a 128-bit unsigned integer in little endian format. The added `xUDT
args` and `xUDT data` parts provide all the new functions needed by xUDT, the
detailed structure is explained below.

### **xUDT Args**

Expand All @@ -44,7 +44,8 @@ xUDT args has the following structure:
<4-byte xUDT flags> <Variable length bytes, extension data>
```

Depending on the content of `flags`, different extension data might be attached:
Depending on the content of `flags`, which is represented as a 32-bit unsigned
integer in little-endian format, different extension data might be attached:

• If `flags & 0x1FFFFFFF` is 0, no extension data is required. Note a
backward-compatible way of viewing things, which is that a plain sUDT cell also
Expand Down

0 comments on commit abeb01b

Please sign in to comment.