Looking up in net I could find a general overview of rar format structure. http://www.rarlab.com/technote.htm
But what would I be glad to be informed is how 7z files are segmented block by block.
thanks.
Refer to the DOC/7zFormat.txt file in the source distribution (an updated version can be found in the official SDK: https://www.7-zip.org/sdk.html).
http://fileformats.archiveteam.org/wiki/7z
To get a better understanding of the file format, you can use hachoir-wx (needs installed wxPython) to navigate an archive to the bit level. It is available via pip. Their parser supports 7zip among lots of other file formats.