示例#1
0
        public IPhysFSStream OpenWrite(ref TestData data, string filename)
        {
            Debug.WriteLine("open write");
            PhysFSStandardStream stream = new PhysFSStandardStream(data.Data);

            return(stream);
        }
示例#2
0
        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);
        }