Iostream interface for SDL_RWops?

Has anyone ever coded such a thing? There is a fileloader that I’m
trying to convert to SDL_RWops, but it uses the ifstream class; changing
it over could be a real mess…