From 0064043e141efa39471a011c49aa3614a753012e Mon Sep 17 00:00:00 2001 From: mratsim Date: Sat, 27 Oct 2018 13:36:10 +0200 Subject: [PATCH] Mention that lists are of elements of homegeneous type --- specs/simple-serialize.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specs/simple-serialize.md b/specs/simple-serialize.md index be58a68dd..f508e8298 100644 --- a/specs/simple-serialize.md +++ b/specs/simple-serialize.md @@ -186,6 +186,8 @@ return byte_length + value #### List/Vectors +Lists are a collection of elements of the same homogeneous type. + | Check to perform | Code | |:--------------------------------------------|:----------------------------| | Length of serialized list fits into 4 bytes | ``len(serialized) < 2**32`` | @@ -327,7 +329,7 @@ return rawbytes[bytes_start:bytes_end], new_index #### List/Vectors -Deserialize each object in the list. +Deserialize each element in the list. 1. Get the length of the serialized list. 2. Loop through deserializing each item in the list until you reach the entire length of the list.