Even when hex modifier is used, 'char' should be printed as characters, this is particularly relevant with 0. e.g. out << (char)0, should write a nul terminator, not "0".
Even when hex modifier is used, 'char' should be printed as characters, this is particularly relevant with 0. e.g. out << (char)0, should write a nul terminator, not "0".