Although the tab appears as 4 or 8 spaces in the editor, it actually appears as a single character ('\ t', as you mentioned) inside the file. Both space characters and the tab character occupy one byte. Thus, in principle, you are right in your assumption.
source
share