[digression on]
don't you think it's a fair question for newbie/non C++ experts to ask by which magical trick an int a float or a double would become a byte to be written? because indeed I'm not (and there example is not either) following their own specification.
[digression off]