A toy TLS record boundary is not a production TLS parser.
highlighted = computed this step
This is only a toy record boundary
This example checks content type 22, length 4, and the tiny payload marker.
22,4
It does not model encryption
The payload is visible toy bytes here. This book does not model encryption or AEAD tags.
payload bytes=4
What this does not model
NOTE: toy TLS record header and payload-boundary example only; not encryption, AEAD tags, key schedule, certificate validation, fragmentation or coalescing behavior, middlebox behavior, or production TLS parsing.
header bytes=5
Summary
A TLS record carries a checked length; this toy lesson stops at that byte boundary.