예제 #1
0
        public VstStreamWriter(BStream stream)
        {
            if (!stream.CanWrite)
            {
                throw new ArgumentException("Cannot write to stream.", nameof(stream));
            }

            _stream = stream;
        }
예제 #2
0
        public VstStreamReader(BStream stream)
        {
            if (!stream.CanRead)
            {
                throw new ArgumentException("Cannot read from stream.", nameof(stream));
            }

            _stream = stream;
        }
예제 #3
0
 public VstStreamWriter(IBStream stream)
 {
     _stream = new BStream(stream, StreamAccessMode.Write);
 }
예제 #4
0
 public VstStreamReader(IBStream stream)
 {
     _stream = new BStream(stream, StreamAccessMode.Read);
 }