I think that the VarInt prefix is the number of bytes where:
Also, about line terminators, LF (\n) is usually used. CR (\r) is not commonly used.
I hope this helps! 😀