In length-prefixed framing, a message of bytes is sent as 4 bytes holding in network byte order, followed by the bytes. Decoding a buffer reads 4 bytes as a length , then takes the next bytes as the message, and starts again after it.
who 1 framed, byte by byte (offsets above): the length 5 in four big-endian bytes, then the five bytes of the message. The receiver reads the four bytes, then exactly five more; whatever follows is the next message.