static wxString ReadString(vfsStream& f, const u32 size) { wxString ret = wxEmptyString; for(uint i=0; i<size && !f.Eof(); ++i) { ret += ReadChar(f); } return ret; }
static char ReadCharNN(vfsStream& f) { char c; while(!f.Eof()) { f.Read(&c, 1); if(c != 0) break; } return c; }
static wxString ReadString(vfsStream& f) { wxString ret = wxEmptyString; while(!f.Eof()) { const char c = ReadChar(f); if(c == 0) break; ret += c; } return ret; }
static void GoToNN(vfsStream& f) { while(!f.Eof()) { char c; f.Read(&c, 1); if(c != 0) { f.Seek(f.Tell() - 1); break; } } }