public IPhysFSStream OpenWrite(ref TestData data, string filename) { Debug.WriteLine("open write"); PhysFSStandardStream stream = new PhysFSStandardStream(data.Data); return(stream); }
public IPhysFSStream OpenRead(ref TestData data, string filename) { Debug.WriteLine("open read"); string str = $"this is a reading test from filename '{filename}'"; byte[] textBytes = Encoding.UTF8.GetBytes(str); PhysFSStandardStream stream = new PhysFSStandardStream(textBytes); return(stream); }