Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scale-codec.md #2178

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/md/en/docs/reference/scale-codec.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following table shows how the Rust implementation of the Parity SCALE codec
| Results [^2] | Results are commonly used enumerations which indicate whether certain operations were successful or unsuccessful. | `Ok(42)` | `0x002a` |
| | | `Err(false)` | `0x0100` |
| Options | One or zero values of a particular type. | `Some` | `0x01` followed by the encoded value |
| | | `None` | `0x00` followed by the encoded value |
| | | `None` | `0x00` |
| Vectors (lists, series, sets) | A collection of same-typed values is encoded, prefixed with a _compact_ encoding of the number of items, followed by each item's encoding concatenated in turn. | Vector of unsigned 16-bit integers: `[4, 8, 15, 16, 23, 42]` | `0x18040008000f00100017002a00` |
| Strings | Strings are Vectors of bytes (`Vec<u8>`) containing a valid UTF8 sequence. | | |
| Tuples | A fixed-size series of values, each with a possibly different but predetermined and fixed type. This is simply the concatenation of each encoded value. | Tuple of compact unsigned integer and boolean: `(3, false)` | `0x0c00` |
Expand Down
Loading