Beispiel #1
0
        public static BaseStreams OpenMemoryStream()
        {
            BaseStreams str = new BaseStreams();

            str.str = new sio.MemoryStream();

            return str;
        }
Beispiel #2
0
        //private static Streams OpenStream<T>() where T : sio.Stream, new()
        //{
        //    Streams str = new Streams();

        //    str.str = new T();

        //    return str;
        //}

        private static BaseStreams OpenFileStream(string fileName, sio.FileAccess access, sio.FileMode mode)
        {
            BaseStreams str = new BaseStreams();

            str.str = new sio.FileStream(fileName, mode, access);

            return str;
        }