Portable in-memory filelike objects