another place, where streambuf should be used in binary serializer