mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 11:44:41 +00:00
formatting
This commit is contained in:
parent
cf70ed0b7c
commit
56066260ad
@ -226,7 +226,7 @@ To serialize a container, obtain the set of its field's names and sort them lexi
|
|||||||
|:--------------------------------------------|:----------------------------|
|
|:--------------------------------------------|:----------------------------|
|
||||||
| Length of serialized fields fits into 4 bytes | ``len(serialized) < 2**32`` |
|
| Length of serialized fields fits into 4 bytes | ``len(serialized) < 2**32`` |
|
||||||
|
|
||||||
* To serialize:
|
To serialize:
|
||||||
|
|
||||||
1. Get the names of the container's fields and sort them.
|
1. Get the names of the container's fields and sort them.
|
||||||
|
|
||||||
@ -407,7 +407,7 @@ Instantiate a container with the full set of deserialized data, matching each me
|
|||||||
| rawbytes has enough left for length | ``len(rawbytes) > current_index + LENGTH_BYTES`` |
|
| rawbytes has enough left for length | ``len(rawbytes) > current_index + LENGTH_BYTES`` |
|
||||||
| list is not greater than serialized bytes | ``len(rawbytes) > current_index + LENGTH_BYTES + total_length`` |
|
| list is not greater than serialized bytes | ``len(rawbytes) > current_index + LENGTH_BYTES + total_length`` |
|
||||||
|
|
||||||
* To deserialize:
|
To deserialize:
|
||||||
|
|
||||||
1. Get the names of the container's fields and sort them.
|
1. Get the names of the container's fields and sort them.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user