formatting

This commit is contained in:
Alex Stokes 2018-10-26 15:25:35 +02:00
parent bdd6336ebc
commit a585653fe5
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,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.
@ -405,7 +405,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.